hexo/node_modules/cuid/lib/pad.js

5 lines
116 B
JavaScript
Raw Normal View History

2023-10-03 11:14:36 +08:00
module.exports = function pad (num, size) {
var s = '000000000' + num;
return s.substr(s.length - size);
};