diff options
Diffstat (limited to 'node_modules/locutus/php/strings/vsprintf.js')
-rw-r--r-- | node_modules/locutus/php/strings/vsprintf.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/node_modules/locutus/php/strings/vsprintf.js b/node_modules/locutus/php/strings/vsprintf.js new file mode 100644 index 0000000..a44af5e --- /dev/null +++ b/node_modules/locutus/php/strings/vsprintf.js @@ -0,0 +1,13 @@ +'use strict'; + +module.exports = function vsprintf(format, args) { + // discuss at: http://locutus.io/php/vsprintf/ + // original by: ejsanders + // example 1: vsprintf('%04d-%02d-%02d', [1988, 8, 1]) + // returns 1: '1988-08-01' + + var sprintf = require('../strings/sprintf'); + + return sprintf.apply(this, [format].concat(args)); +}; +//# sourceMappingURL=vsprintf.js.map
\ No newline at end of file |