hexo/node_modules/cuid/lib/pad.js

5 lines
116 B
JavaScript

module.exports = function pad (num, size) {
var s = '000000000' + num;
return s.substr(s.length - size);
};