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

35
node_modules/right-pad/.npmignore generated vendored Normal file
View File

@@ -0,0 +1,35 @@
### Node ###
# Logs
logs
*.log
npm-debug.log*
# Runtime data
pids
*.pid
*.seed
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# node-waf configuration
.lock-wscript
# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release
# Dependency directories
node_modules
jspm_packages
# Optional npm cache directory
.npm
# Optional REPL history
.node_repl_history

11
node_modules/right-pad/README.md generated vendored Normal file
View File

@@ -0,0 +1,11 @@
# Right Pad
Right Pad adds a "padding" to the right side of the string with the character of your choice or just blank space.
## Install
`$ npm install right-pad`
## Usage
```javascript
var rightpad = require('right-pad');
rightpad('hello world', 14, '.'); // => hello world...
```

4
node_modules/right-pad/examples/basic.js generated vendored Normal file
View File

@@ -0,0 +1,4 @@
// Coding standard for this project defined @ https://github.com/MatthewSH/standards/blob/master/JavaScript.md
const $rightpad = require('../rightpad');
console.log($rightpad('hello world', 14, '.')); // => hello world...

32
node_modules/right-pad/package.json generated vendored Normal file
View File

@@ -0,0 +1,32 @@
{
"name": "right-pad",
"version": "1.0.1",
"description": "Right Pad adds a padding to the right side of the string with the character of your choice or just blank space.",
"author": {
"name": "matthewh",
"email": "hello@matthewh.in",
"url": "http://matthewh.in/"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"private": false,
"main": "rightpad.js",
"homepage": "https://github.com/MatthewNPM/right-pad",
"repository": {
"type": "git",
"url": "https://github.com/MatthewNPM/right-pad"
},
"bugs": {
"url": "https://github.com/MatthewNPM/right-pad/issues"
},
"engines": {
"node": ">= 0.10"
},
"keywords": [
"right",
"pad",
"string"
],
"license": "MIT"
}

28
node_modules/right-pad/rightpad.js generated vendored Normal file
View File

@@ -0,0 +1,28 @@
// Coding standard for this project defined @ https://github.com/MatthewSH/standards/blob/master/JavaScript.md
'use strict';
exports = module.exports = function rightPad (_string, _length, _char) {
if (typeof _string !== 'string') {
throw new Error('The string parameter must be a string.');
}
if (_string.length < 1) {
throw new Error('The string parameter must be 1 character or longer.');
}
if (typeof _length !== 'number') {
throw new Error('The length parameter must be a number.');
}
if(typeof _char !== 'string' && _char) {
throw new Error('The character parameter must be a string.');
}
var i = -1;
_length = _length - _string.length;
if (!_char && _char !== 0) {
_char = ' ';
}
while (++i < _length) {
_string += _char;
}
return _string;
}