Pushing changes
This commit is contained in:
24
node_modules/repeating/index.js
generated
vendored
Normal file
24
node_modules/repeating/index.js
generated
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
'use strict';
|
||||
var isFinite = require('is-finite');
|
||||
|
||||
module.exports = function (str, n) {
|
||||
if (typeof str !== 'string') {
|
||||
throw new TypeError('Expected `input` to be a string');
|
||||
}
|
||||
|
||||
if (n < 0 || !isFinite(n)) {
|
||||
throw new TypeError('Expected `count` to be a positive finite number');
|
||||
}
|
||||
|
||||
var ret = '';
|
||||
|
||||
do {
|
||||
if (n & 1) {
|
||||
ret += str;
|
||||
}
|
||||
|
||||
str += str;
|
||||
} while ((n >>= 1));
|
||||
|
||||
return ret;
|
||||
};
|
21
node_modules/repeating/license
generated
vendored
Normal file
21
node_modules/repeating/license
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
104
node_modules/repeating/package.json
generated
vendored
Normal file
104
node_modules/repeating/package.json
generated
vendored
Normal file
@ -0,0 +1,104 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
{
|
||||
"raw": "repeating@^2.0.0",
|
||||
"scope": null,
|
||||
"escapedName": "repeating",
|
||||
"name": "repeating",
|
||||
"rawSpec": "^2.0.0",
|
||||
"spec": ">=2.0.0 <3.0.0",
|
||||
"type": "range"
|
||||
},
|
||||
"/home/burchettm/statsbot/node_modules/indent-string"
|
||||
]
|
||||
],
|
||||
"_from": "repeating@>=2.0.0 <3.0.0",
|
||||
"_id": "repeating@2.0.1",
|
||||
"_inCache": true,
|
||||
"_location": "/repeating",
|
||||
"_nodeVersion": "4.4.2",
|
||||
"_npmOperationalInternal": {
|
||||
"host": "packages-12-west.internal.npmjs.com",
|
||||
"tmp": "tmp/repeating-2.0.1.tgz_1460395966602_0.9193919147364795"
|
||||
},
|
||||
"_npmUser": {
|
||||
"name": "sindresorhus",
|
||||
"email": "sindresorhus@gmail.com"
|
||||
},
|
||||
"_npmVersion": "3.8.6",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"raw": "repeating@^2.0.0",
|
||||
"scope": null,
|
||||
"escapedName": "repeating",
|
||||
"name": "repeating",
|
||||
"rawSpec": "^2.0.0",
|
||||
"spec": ">=2.0.0 <3.0.0",
|
||||
"type": "range"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/indent-string"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/repeating/-/repeating-2.0.1.tgz",
|
||||
"_shasum": "5214c53a926d3552707527fbab415dbc08d06dda",
|
||||
"_shrinkwrap": null,
|
||||
"_spec": "repeating@^2.0.0",
|
||||
"_where": "/home/burchettm/statsbot/node_modules/indent-string",
|
||||
"author": {
|
||||
"name": "Sindre Sorhus",
|
||||
"email": "sindresorhus@gmail.com",
|
||||
"url": "sindresorhus.com"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/sindresorhus/repeating/issues"
|
||||
},
|
||||
"dependencies": {
|
||||
"is-finite": "^1.0.0"
|
||||
},
|
||||
"description": "Repeat a string - fast",
|
||||
"devDependencies": {
|
||||
"ava": "*",
|
||||
"xo": "*"
|
||||
},
|
||||
"directories": {},
|
||||
"dist": {
|
||||
"shasum": "5214c53a926d3552707527fbab415dbc08d06dda",
|
||||
"tarball": "https://registry.npmjs.org/repeating/-/repeating-2.0.1.tgz"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
},
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"gitHead": "be02bcaf9a674b3c155477b3bf282136bcf44770",
|
||||
"homepage": "https://github.com/sindresorhus/repeating#readme",
|
||||
"keywords": [
|
||||
"repeat",
|
||||
"string",
|
||||
"repeating",
|
||||
"str",
|
||||
"text",
|
||||
"fill",
|
||||
"pad"
|
||||
],
|
||||
"license": "MIT",
|
||||
"maintainers": [
|
||||
{
|
||||
"name": "sindresorhus",
|
||||
"email": "sindresorhus@gmail.com"
|
||||
}
|
||||
],
|
||||
"name": "repeating",
|
||||
"optionalDependencies": {},
|
||||
"readme": "ERROR: No README data found!",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/sindresorhus/repeating.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "xo && ava"
|
||||
},
|
||||
"version": "2.0.1"
|
||||
}
|
30
node_modules/repeating/readme.md
generated
vendored
Normal file
30
node_modules/repeating/readme.md
generated
vendored
Normal file
@ -0,0 +1,30 @@
|
||||
# repeating [](https://travis-ci.org/sindresorhus/repeating)
|
||||
|
||||
> Repeat a string - fast
|
||||
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install --save repeating
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
const repeating = require('repeating');
|
||||
|
||||
repeating('unicorn ', 100);
|
||||
//=> 'unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn '
|
||||
```
|
||||
|
||||
|
||||
## Related
|
||||
|
||||
- [repeating-cli](https://github.com/sindresorhus/repeating-cli) - CLI for this module
|
||||
|
||||
|
||||
## License
|
||||
|
||||
MIT © [Sindre Sorhus](https://sindresorhus.com)
|
Reference in New Issue
Block a user