File: safe_format.js

package info (click to toggle)
node-normalize-package-data 3.0.0%2B~2.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 564 kB
  • sloc: javascript: 1,055; makefile: 5
file content (9 lines) | stat: -rw-r--r-- 246 bytes parent folder | download | duplicates (16)
1
2
3
4
5
6
7
8
9
var util = require('util')

module.exports = function() {
  var args = Array.prototype.slice.call(arguments, 0)
  args.forEach(function(arg) {
    if (!arg) throw new TypeError('Bad arguments.')
  })
  return util.format.apply(null, arguments)
}