hexo/node_modules/cuid/lib/pad.js

5 lines
112 B
JavaScript
Raw Normal View History

2023-09-25 15:58:56 +08:00
module.exports = function pad (num, size) {
var s = '000000000' + num;
return s.substr(s.length - size);
};