{ "_id": "repeat-element", "_rev": "7-cfd7e47cbbfbb17d78287f8f1adfcb0b", "name": "repeat-element", "description": "Create an array by repeating the given value n times.", "dist-tags": { "latest": "1.1.3" }, "versions": { "1.0.0": { "name": "repeat-element", "description": "Create an array by repeating the given string n times.", "version": "1.0.0", "homepage": "https://github.com/jonschlinkert/repeat-element", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" }, "repository": { "type": "git", "url": "git://github.com/jonschlinkert/repeat-element.git" }, "bugs": { "url": "https://github.com/jonschlinkert/repeat-element/issues" }, "license": { "type": "MIT", "url": "https://github.com/jonschlinkert/repeat-element/blob/master/LICENSE-MIT" }, "main": "index.js", "engines": { "node": ">=0.10.0" }, "scripts": { "test": "mocha -R spec" }, "devDependencies": { "mocha": "*" }, "keywords": [ "array", "element", "repeat", "string" ], "gitHead": "156ba7d5b3b8c36c15b09f1a60d4d26ce0ccb02e", "_id": "repeat-element@1.0.0", "_shasum": "8eb69be1627e61adb320e121be0e6621c7476918", "_from": ".", "_npmVersion": "1.4.23", "_npmUser": { "name": "jonschlinkert", "email": "github@sellside.com" }, "maintainers": [ { "name": "jonschlinkert", "email": "github@sellside.com" } ], "dist": { "shasum": "8eb69be1627e61adb320e121be0e6621c7476918", "tarball": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.0.0.tgz" }, "directories": {} }, "1.1.0": { "name": "repeat-element", "description": "Create an array by repeating the given string n times.", "version": "1.1.0", "homepage": "https://github.com/jonschlinkert/repeat-element", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" }, "repository": { "type": "git", "url": "git://github.com/jonschlinkert/repeat-element.git" }, "bugs": { "url": "https://github.com/jonschlinkert/repeat-element/issues" }, "license": { "type": "MIT", "url": "https://github.com/jonschlinkert/repeat-element/blob/master/LICENSE-MIT" }, "main": "index.js", "engines": { "node": ">=0.10.0" }, "scripts": { "test": "mocha -R spec" }, "files": [ "index.js" ], "devDependencies": { "benchmarked": "^0.1.3", "chalk": "^0.5.1", "glob": "^4.3.5", "minimist": "^1.1.0", "mocha": "*" }, "keywords": [ "array", "element", "repeat", "string" ], "gitHead": "4810bfdaa6749c3f7e5013f2c23fe1bc43c61e1f", "_id": "repeat-element@1.1.0", "_shasum": "3307c041c52bb36a36e380de2d252ef61a907cca", "_from": ".", "_npmVersion": "1.4.28", "_npmUser": { "name": "jonschlinkert", "email": "github@sellside.com" }, "maintainers": [ { "name": "jonschlinkert", "email": "github@sellside.com" } ], "dist": { "shasum": "3307c041c52bb36a36e380de2d252ef61a907cca", "tarball": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.0.tgz" }, "directories": {} }, "1.1.1": { "name": "repeat-element", "description": "Create an array by repeating the given value n times.", "version": "1.1.1", "homepage": "https://github.com/jonschlinkert/repeat-element", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" }, "repository": { "type": "git", "url": "git://github.com/jonschlinkert/repeat-element.git" }, "bugs": { "url": "https://github.com/jonschlinkert/repeat-element/issues" }, "license": { "type": "MIT", "url": "https://github.com/jonschlinkert/repeat-element/blob/master/LICENSE" }, "main": "index.js", "engines": { "node": ">=0.10.0" }, "scripts": { "test": "mocha" }, "files": [ "index.js" ], "keywords": [ "array", "element", "repeat", "string" ], "devDependencies": { "benchmarked": "^0.1.4", "chalk": "^1.0.0", "glob": "^5.0.5", "minimist": "^1.1.1" }, "gitHead": "8cc3318bd824c364102de01e3afe53a4290f4ae3", "_id": "repeat-element@1.1.1", "_shasum": "18120b13aa79a932495b357529c76935522ff599", "_from": ".", "_npmVersion": "2.5.1", "_nodeVersion": "0.12.0", "_npmUser": { "name": "jonschlinkert", "email": "github@sellside.com" }, "maintainers": [ { "name": "jonschlinkert", "email": "github@sellside.com" } ], "dist": { "shasum": "18120b13aa79a932495b357529c76935522ff599", "tarball": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.1.tgz" }, "directories": {} }, "1.1.2": { "name": "repeat-element", "description": "Create an array by repeating the given value n times.", "version": "1.1.2", "homepage": "https://github.com/jonschlinkert/repeat-element", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" }, "repository": { "type": "git", "url": "git://github.com/jonschlinkert/repeat-element.git" }, "bugs": { "url": "https://github.com/jonschlinkert/repeat-element/issues" }, "license": { "type": "MIT", "url": "https://github.com/jonschlinkert/repeat-element/blob/master/LICENSE" }, "main": "index.js", "engines": { "node": ">=0.10.0" }, "scripts": { "test": "mocha" }, "files": [ "index.js" ], "keywords": [ "array", "element", "repeat", "string" ], "devDependencies": { "benchmarked": "^0.1.4", "chalk": "^1.0.0", "glob": "^5.0.5", "minimist": "^1.1.1", "mocha": "^2.2.4" }, "gitHead": "7a6b21d58eafcc44fc8de133c70a8398ee9fdd8d", "_id": "repeat-element@1.1.2", "_shasum": "ef089a178d1483baae4d93eb98b4f9e4e11d990a", "_from": ".", "_npmVersion": "2.5.1", "_nodeVersion": "0.12.0", "_npmUser": { "name": "jonschlinkert", "email": "github@sellside.com" }, "maintainers": [ { "name": "jonschlinkert", "email": "github@sellside.com" } ], "dist": { "shasum": "ef089a178d1483baae4d93eb98b4f9e4e11d990a", "tarball": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.2.tgz" }, "directories": {} }, "1.1.3": { "name": "repeat-element", "description": "Create an array by repeating the given value n times.", "version": "1.1.3", "homepage": "https://github.com/jonschlinkert/repeat-element", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" }, "repository": { "type": "git", "url": "git+https://github.com/jonschlinkert/repeat-element.git" }, "bugs": { "url": "https://github.com/jonschlinkert/repeat-element/issues" }, "license": "MIT", "files": [ "index.js" ], "main": "index.js", "engines": { "node": ">=0.10.0" }, "scripts": { "test": "mocha" }, "devDependencies": { "benchmarked": "^2.0.0", "chalk": "^2.4.1", "glob": "^7.1.2", "gulp-format-md": "^1.0.0", "minimist": "^1.2.0", "mocha": "^3.5.3" }, "keywords": [ "array", "element", "repeat", "string" ], "verb": { "toc": false, "layout": "default", "tasks": [ "readme" ], "plugins": [ "gulp-format-md" ], "lint": { "reflinks": true } }, "gitHead": "32af174b4218263952a77d881f37d6e545b7cfd0", "_id": "repeat-element@1.1.3", "_npmVersion": "6.4.0", "_nodeVersion": "10.0.0", "_npmUser": { "name": "jonschlinkert", "email": "github@sellside.com" }, "dist": { "integrity": "sha512-ahGq0ZnV5m5XtZLMb+vP76kcAM5nkLqk0lpqAuojSKGgQtn4eRi4ZZGm2olo2zKFH+sMsWaqOCW1dqAnOru72g==", "shasum": "782e0d825c0c5a3bb39731f84efee6b742e6b1ce", "tarball": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.3.tgz", "fileCount": 4, "unpackedSize": 5319, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbeY0WCRA9TVsSAnZWagAA9+8P/1uuLJ5jSetjPW5fdV4L\nvxHfZDwhxYdhTFCDvxFRTtXJrZRf0mI+ET5WsuAHSi/v+e4A0/qOZMCq1ggs\nyAeONQq6ChtiYaingdb9x18J4ULeSaeXF4W01n0tfb56LeLcUS1v+4kn99uQ\nfDdh+iwqBPxs/KmDhjR6Ihy9OoVhj3XMr4pElL3noSsnGyNUUobTxmEGUN4r\n9VXRBa90acEjPzBw9H6H0H9kmWEH3YMgZ4kvGUV/kICkZJDfbP/4z3VBj+kQ\nfLHV/emGFCkK19wf3GpgCCYstUyPy3QLWc5htSo011mlZYu2YK3zLlFPxWpR\nf/Doxn0VNluyHOKae0DrfKqfErSx8qYw8F3d3gbO7a26FHljD8wSG5WXooCl\nUiH7YMmZ6nwbKWlFh1XfyYXzDX/Na01mcZ9MzPycwJbAT6bWCPb6clh+uoIw\n9fd7Dqe7SrPWL7e1oA4qIzcgoVSsrkSGkwoXUxiUsklVXxdpUd+MPic4xdhi\nVmVl1b4Zlgd2wST+8HwKf57Ug+G8M4R3r2iu4y8yZL8pb3gMVSkgF+TgOYuw\nCM1HbPnqafmlck/Vtm7po18aUFc55jMxKQLe7eBtlLYc8h/HhD9um1THRKhm\njMsOslwPB4Y6G7nvm2wx8dLQl0PFG9astOg81ddE1o+HjgcxOwbUEAb/oqzZ\ngHyf\r\n=mFVv\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "name": "jonschlinkert", "email": "github@sellside.com" } ], "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/repeat-element_1.1.3_1534692630389_0.5249467379316295" } } }, "readme": "# repeat-element [![NPM version](https://img.shields.io/npm/v/repeat-element.svg?style=flat)](https://www.npmjs.com/package/repeat-element) [![NPM monthly downloads](https://img.shields.io/npm/dm/repeat-element.svg?style=flat)](https://npmjs.org/package/repeat-element) [![NPM total downloads](https://img.shields.io/npm/dt/repeat-element.svg?style=flat)](https://npmjs.org/package/repeat-element) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/repeat-element.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/repeat-element)\n\n> Create an array by repeating the given value n times.\n\nPlease consider following this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), and consider starring the project to show your :heart: and support.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save repeat-element\n```\n\n## Usage\n\n```js\nconst repeat = require('repeat-element');\n\nrepeat('a', 5);\n//=> ['a', 'a', 'a', 'a', 'a']\n\nrepeat('a', 1);\n//=> ['a']\n\nrepeat('a', 0);\n//=> []\n\nrepeat(null, 5)\n//» [ null, null, null, null, null ]\n\nrepeat({some: 'object'}, 5)\n//» [ { some: 'object' },\n// { some: 'object' },\n// { some: 'object' },\n// { some: 'object' },\n// { some: 'object' } ]\n\nrepeat(5, 5)\n//» [ 5, 5, 5, 5, 5 ]\n```\n\n## About\n\n
\nContributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n
\n\n
\nRunning Tests\n\nRunning and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:\n\n```sh\n$ npm install && npm test\n```\n\n
\n\n
\nBuilding docs\n\n_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_\n\nTo generate the readme, run the following command:\n\n```sh\n$ npm install -g verbose/verb#dev verb-generate-readme && verb\n```\n\n
\n\n### Contributors\n\n| **Commits** | **Contributor** | \n| --- | --- |\n| 17 | [jonschlinkert](https://github.com/jonschlinkert) |\n| 3 | [LinusU](https://github.com/LinusU) |\n| 1 | [architectcodes](https://github.com/architectcodes) |\n\n### Author\n\n**Jon Schlinkert**\n\n* [GitHub Profile](https://github.com/jonschlinkert)\n* [Twitter Profile](https://twitter.com/jonschlinkert)\n* [LinkedIn Profile](https://linkedin.com/in/jonschlinkert)\n\n### License\n\nCopyright © 2018, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT License](LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on August 19, 2018._", "maintainers": [ { "name": "jonschlinkert", "email": "github@sellside.com" } ], "time": { "modified": "2018-08-19T15:30:33.160Z", "created": "2015-01-11T23:45:10.936Z", "1.0.0": "2015-01-11T23:45:10.936Z", "1.1.0": "2015-01-26T17:56:50.027Z", "1.1.1": "2015-05-07T03:17:19.496Z", "1.1.2": "2015-05-07T03:19:33.716Z", "1.1.3": "2018-08-19T15:30:30.501Z" }, "homepage": "https://github.com/jonschlinkert/repeat-element", "keywords": [ "array", "element", "repeat", "string" ], "repository": { "type": "git", "url": "git+https://github.com/jonschlinkert/repeat-element.git" }, "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" }, "bugs": { "url": "https://github.com/jonschlinkert/repeat-element/issues" }, "license": "MIT", "readmeFilename": "README.md", "_attachments": {} }