aboutsummaryrefslogtreecommitdiff
path: root/node_modules/repeat-element
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-10-10 03:43:44 +0200
committerFlorian Dold <florian.dold@gmail.com>2016-10-10 03:43:44 +0200
commitabd94a7f5a50f43c797a11b53549ae48fff667c3 (patch)
treeab8ed457f65cdd72e13e0571d2975729428f1551 /node_modules/repeat-element
parenta0247c6a3fd6a09a41a7e35a3441324c4dcb58be (diff)
downloadwallet-core-abd94a7f5a50f43c797a11b53549ae48fff667c3.tar.xz
add node_modules to address #4364
Diffstat (limited to 'node_modules/repeat-element')
-rw-r--r--node_modules/repeat-element/LICENSE21
-rw-r--r--node_modules/repeat-element/README.md71
-rw-r--r--node_modules/repeat-element/index.js18
-rw-r--r--node_modules/repeat-element/package.json102
4 files changed, 212 insertions, 0 deletions
diff --git a/node_modules/repeat-element/LICENSE b/node_modules/repeat-element/LICENSE
new file mode 100644
index 000000000..33754daec
--- /dev/null
+++ b/node_modules/repeat-element/LICENSE
@@ -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.
diff --git a/node_modules/repeat-element/README.md b/node_modules/repeat-element/README.md
new file mode 100644
index 000000000..008e20ead
--- /dev/null
+++ b/node_modules/repeat-element/README.md
@@ -0,0 +1,71 @@
+# repeat-element [![NPM version](https://badge.fury.io/js/repeat-element.svg)](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._
diff --git a/node_modules/repeat-element/index.js b/node_modules/repeat-element/index.js
new file mode 100644
index 000000000..0ad45ab46
--- /dev/null
+++ b/node_modules/repeat-element/index.js
@@ -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;
+};
diff --git a/node_modules/repeat-element/package.json b/node_modules/repeat-element/package.json
new file mode 100644
index 000000000..367f619c5
--- /dev/null
+++ b/node_modules/repeat-element/package.json
@@ -0,0 +1,102 @@
+{
+ "_args": [
+ [
+ {
+ "raw": "repeat-element@^1.1.2",
+ "scope": null,
+ "escapedName": "repeat-element",
+ "name": "repeat-element",
+ "rawSpec": "^1.1.2",
+ "spec": ">=1.1.2 <2.0.0",
+ "type": "range"
+ },
+ "/home/dold/repos/taler/wallet-webex/node_modules/braces"
+ ]
+ ],
+ "_from": "repeat-element@>=1.1.2 <2.0.0",
+ "_id": "repeat-element@1.1.2",
+ "_inCache": true,
+ "_location": "/repeat-element",
+ "_nodeVersion": "0.12.0",
+ "_npmUser": {
+ "name": "jonschlinkert",
+ "email": "github@sellside.com"
+ },
+ "_npmVersion": "2.5.1",
+ "_phantomChildren": {},
+ "_requested": {
+ "raw": "repeat-element@^1.1.2",
+ "scope": null,
+ "escapedName": "repeat-element",
+ "name": "repeat-element",
+ "rawSpec": "^1.1.2",
+ "spec": ">=1.1.2 <2.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": "/home/dold/repos/taler/wallet-webex/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",
+ "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": {},
+ "readme": "ERROR: No README data found!",
+ "repository": {
+ "type": "git",
+ "url": "git://github.com/jonschlinkert/repeat-element.git"
+ },
+ "scripts": {
+ "test": "mocha"
+ },
+ "version": "1.1.2"
+}