Template Upload
This commit is contained in:
21
node_modules/repeat-element/LICENSE
generated
vendored
Normal file
21
node_modules/repeat-element/LICENSE
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2015 Jon Schlinkert
|
||||
|
||||
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.
|
71
node_modules/repeat-element/README.md
generated
vendored
Normal file
71
node_modules/repeat-element/README.md
generated
vendored
Normal file
@ -0,0 +1,71 @@
|
||||
# repeat-element [](http://badge.fury.io/js/repeat-element)
|
||||
|
||||
> Create an array by repeating the given value n times.
|
||||
|
||||
## Install
|
||||
|
||||
Install with [npm](https://www.npmjs.com/)
|
||||
|
||||
```bash
|
||||
npm i repeat-element --save
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
var repeat = require('repeat-element');
|
||||
|
||||
repeat('a', 5);
|
||||
//=> ['a', 'a', 'a', 'a', 'a']
|
||||
|
||||
repeat('a', 1);
|
||||
//=> ['a']
|
||||
|
||||
repeat('a', 0);
|
||||
//=> []
|
||||
|
||||
repeat(null, 5)
|
||||
//» [ null, null, null, null, null ]
|
||||
|
||||
repeat({some: 'object'}, 5)
|
||||
//» [ { some: 'object' },
|
||||
// { some: 'object' },
|
||||
// { some: 'object' },
|
||||
// { some: 'object' },
|
||||
// { some: 'object' } ]
|
||||
|
||||
repeat(5, 5)
|
||||
//» [ 5, 5, 5, 5, 5 ]
|
||||
```
|
||||
|
||||
## Related projects
|
||||
|
||||
[repeat-string](https://github.com/jonschlinkert/repeat-string): Repeat the given string n times. Fastest implementation for repeating a string.
|
||||
|
||||
## Running tests
|
||||
|
||||
Install dev dependencies:
|
||||
|
||||
```bash
|
||||
npm i -d && npm test
|
||||
```
|
||||
|
||||
## Contributing
|
||||
|
||||
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/repeat-element/issues)
|
||||
|
||||
## Author
|
||||
|
||||
**Jon Schlinkert**
|
||||
|
||||
+ [github/jonschlinkert](https://github.com/jonschlinkert)
|
||||
+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)
|
||||
|
||||
## License
|
||||
|
||||
Copyright (c) 2015 Jon Schlinkert
|
||||
Released under the MIT license.
|
||||
|
||||
***
|
||||
|
||||
_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on May 06, 2015._
|
18
node_modules/repeat-element/index.js
generated
vendored
Normal file
18
node_modules/repeat-element/index.js
generated
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
/*!
|
||||
* repeat-element <https://github.com/jonschlinkert/repeat-element>
|
||||
*
|
||||
* Copyright (c) 2015 Jon Schlinkert.
|
||||
* Licensed under the MIT license.
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
module.exports = function repeat(ele, num) {
|
||||
var arr = new Array(num);
|
||||
|
||||
for (var i = 0; i < num; i++) {
|
||||
arr[i] = ele;
|
||||
}
|
||||
|
||||
return arr;
|
||||
};
|
93
node_modules/repeat-element/package.json
generated
vendored
Normal file
93
node_modules/repeat-element/package.json
generated
vendored
Normal file
@ -0,0 +1,93 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
"repeat-element@^1.1.2",
|
||||
"C:\\Users\\x2mjbyrn\\Source\\Repos\\Skeleton\\node_modules\\braces"
|
||||
]
|
||||
],
|
||||
"_from": "repeat-element@>=1.1.2-0 <2.0.0-0",
|
||||
"_id": "repeat-element@1.1.2",
|
||||
"_inCache": true,
|
||||
"_location": "/repeat-element",
|
||||
"_nodeVersion": "0.12.0",
|
||||
"_npmUser": {
|
||||
"email": "github@sellside.com",
|
||||
"name": "jonschlinkert"
|
||||
},
|
||||
"_npmVersion": "2.5.1",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"name": "repeat-element",
|
||||
"raw": "repeat-element@^1.1.2",
|
||||
"rawSpec": "^1.1.2",
|
||||
"scope": null,
|
||||
"spec": ">=1.1.2-0 <2.0.0-0",
|
||||
"type": "range"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/braces",
|
||||
"/fill-range"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.2.tgz",
|
||||
"_shasum": "ef089a178d1483baae4d93eb98b4f9e4e11d990a",
|
||||
"_shrinkwrap": null,
|
||||
"_spec": "repeat-element@^1.1.2",
|
||||
"_where": "C:\\Users\\x2mjbyrn\\Source\\Repos\\Skeleton\\node_modules\\braces",
|
||||
"author": {
|
||||
"name": "Jon Schlinkert",
|
||||
"url": "https://github.com/jonschlinkert"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/jonschlinkert/repeat-element/issues"
|
||||
},
|
||||
"dependencies": {},
|
||||
"description": "Create an array by repeating the given value n times.",
|
||||
"devDependencies": {
|
||||
"benchmarked": "^0.1.4",
|
||||
"chalk": "^1.0.0",
|
||||
"glob": "^5.0.5",
|
||||
"minimist": "^1.1.1",
|
||||
"mocha": "^2.2.4"
|
||||
},
|
||||
"directories": {},
|
||||
"dist": {
|
||||
"shasum": "ef089a178d1483baae4d93eb98b4f9e4e11d990a",
|
||||
"tarball": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.2.tgz"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
},
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"gitHead": "7a6b21d58eafcc44fc8de133c70a8398ee9fdd8d",
|
||||
"homepage": "https://github.com/jonschlinkert/repeat-element",
|
||||
"installable": true,
|
||||
"keywords": [
|
||||
"array",
|
||||
"element",
|
||||
"repeat",
|
||||
"string"
|
||||
],
|
||||
"license": {
|
||||
"type": "MIT",
|
||||
"url": "https://github.com/jonschlinkert/repeat-element/blob/master/LICENSE"
|
||||
},
|
||||
"main": "index.js",
|
||||
"maintainers": [
|
||||
{
|
||||
"name": "jonschlinkert",
|
||||
"email": "github@sellside.com"
|
||||
}
|
||||
],
|
||||
"name": "repeat-element",
|
||||
"optionalDependencies": {},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/jonschlinkert/repeat-element.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "mocha"
|
||||
},
|
||||
"version": "1.1.2"
|
||||
}
|
Reference in New Issue
Block a user