Skip to content

Commit

Permalink
Add deprecation util for the sprintf and vsprintf functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorik Tangelder committed Jan 19, 2016
1 parent 7c03e83 commit 63a5120
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -61,6 +61,7 @@
}
},
"dependencies": {
"sprintf-js": "^1.0.3"
"sprintf-js": "^1.0.3",
"util-deprecate": "^1.0.2"
}
}
5 changes: 4 additions & 1 deletion sprintf.js
@@ -1 +1,4 @@
module.exports = require('sprintf-js').sprintf;
var deprecate = require('util-deprecate');

module.exports = deprecate(require('sprintf-js').sprintf,
'sprintf() is will be removed the next major release, use the sprintf-js package instead.');
5 changes: 4 additions & 1 deletion vsprintf.js
@@ -1 +1,4 @@
module.exports = require('sprintf-js').vsprintf;
var deprecate = require('util-deprecate');

module.exports = deprecate(require('sprintf-js').vsprintf,
'vsprintf() is will be removed the next major release, use the sprintf-js package instead.');

0 comments on commit 63a5120

Please sign in to comment.