chore(package): re-init package with commitizen and standard-release

This commit is contained in:
Pavel Pertsev
2018-05-16 12:54:46 +03:00
parent cb4e7a5643
commit eaf2328575
10640 changed files with 609660 additions and 117 deletions

20
node_modules/pad-right/index.js generated vendored Normal file
View File

@@ -0,0 +1,20 @@
'use strict';
var repeat = require('repeat-string');
module.exports = function padLeft(val, num, str) {
var padding = '';
var diff = num - val.length;
// Breakpoints based on benchmarks to use the fastest approach
// for the given number of zeros
if (diff <= 5 && !str) {
padding = '00000';
} else if (diff <= 25 && !str) {
padding = '000000000000000000000000000';
} else {
return val + repeat(str || '0', diff);
}
return val + padding.slice(0, diff);
};