1
0
mirror of https://github.com/mgerb/mywebsite synced 2026-01-12 10:52:47 +00:00

updated package.json

This commit is contained in:
2016-01-04 12:25:28 -05:00
parent 3443c97de4
commit 80ca24a715
1168 changed files with 73752 additions and 26424 deletions

25
node_modules/utile/lib/format.js generated vendored Normal file
View File

@@ -0,0 +1,25 @@
/*
* format.js: `util.format` enhancement to allow custom formatting parameters.
*
* (C) 2012, Nodejitsu Inc.
* MIT LICENSE
*
*/
var util = require('util');
exports = module.exports = function(str) {
var formats = [].slice.call(arguments, 1, 3);
if (!(formats[0] instanceof Array && formats[1] instanceof Array) || arguments.length > 3)
return util.format.apply(null, arguments);
var replacements = formats.pop(),
formats = formats.shift();
formats.forEach(function(format, id) {
str = str.replace(new RegExp(format), replacements[id]);
});
return str;
};