motion
Version:
motion - moving development forward
89 lines (88 loc) • 4.89 kB
JSON
{
"_args": [
[
"repeat-string@https://registry.npmjs.org/repeat-string/-/repeat-string-1.5.2.tgz",
"/Users/nw/flint/packages/flint"
]
],
"_from": "repeat-string@>=1.5.2 <2.0.0",
"_id": "repeat-string@1.5.2",
"_inCache": true,
"_location": "/repeat-string",
"_phantomChildren": {},
"_requested": {
"name": "repeat-string",
"raw": "repeat-string@https://registry.npmjs.org/repeat-string/-/repeat-string-1.5.2.tgz",
"rawSpec": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.5.2.tgz",
"scope": null,
"spec": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.5.2.tgz",
"type": "remote"
},
"_requiredBy": [
"/align-text",
"/fill-range"
],
"_resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.5.2.tgz",
"_shasum": "21065f70727ad053a0dd5e957ac9e00c7560d90a",
"_shrinkwrap": null,
"_spec": "repeat-string@https://registry.npmjs.org/repeat-string/-/repeat-string-1.5.2.tgz",
"_where": "/Users/nw/flint/packages/flint",
"author": {
"name": "Jon Schlinkert",
"url": "http://github.com/jonschlinkert/"
},
"bugs": {
"url": "https://github.com/jonschlinkert/repeat-string/issues"
},
"dependencies": {},
"description": "Repeat the given string n times. Fastest implementation for repeating a string.",
"devDependencies": {
"benchmarked": "^0.1.3",
"chalk": "^0.5.1",
"glob": "^4.3.5",
"mocha": "^2.2.1",
"repeating": "^1.1.1",
"should": "^4.0.4"
},
"engines": {
"node": ">=0.10"
},
"files": [
"index.js"
],
"homepage": "https://github.com/jonschlinkert/repeat-string",
"keywords": [
"fast",
"fastest",
"fill",
"left",
"left-pad",
"multiple",
"pad",
"padding",
"repeat",
"repeating",
"repetition",
"right",
"right-pad",
"string",
"times"
],
"license": {
"type": "MIT",
"url": "https://github.com/jonschlinkert/repeat-string/blob/master/LICENSE"
},
"main": "index.js",
"name": "repeat-string",
"optionalDependencies": {},
"readme": "# repeat-string [](http://badge.fury.io/js/repeat-string) [](https://travis-ci.org/jonschlinkert/repeat-string) \n\n> Repeat the given string n times. Fastest implementation for repeating a string.\n\n## Install with [npm](npmjs.org)\n\n```bash\nnpm i repeat-string --save\n```\n## Install with [bower](https://github.com/bower/bower)\n\n```bash\nbower install repeat-string --save\n```\n\n## Usage\n\n### [repeat](./index.js#L34)\n\nRepeat the given `string` the specified `number` of times.\n\n* `string` **{String}**: The string to repeat \n* `number` **{Number}**: The number of times to repeat the string \n* `returns` **{String}**: Repeated string \n\n**Example:**\n\n```js\nvar repeat = require('repeat-string');\nrepeat('A', 5);\n//=> AAAAA\n```\n\n## Benchmarks\n\nRepeat string is significantly faster than [repeating](https://github.com/sindresorhus/repeating).\n\n```bash\n# 20,000x\n repeat-string.js x 16,634,213 ops/sec ±0.92% (93 runs sampled)\n repeating.js x 5,883,928 ops/sec ±0.95% (93 runs sampled)\n\n# 2,000x\n repeat-string.js x 17,438,654 ops/sec ±0.76% (97 runs sampled)\n repeating.js x 6,639,978 ops/sec ±0.84% (97 runs sampled)\n\n# 250x\n repeat-string.js x 16,246,885 ops/sec ±0.81% (92 runs sampled)\n repeating.js x 7,659,342 ops/sec ±0.67% (99 runs sampled)\n\n# 50x\n repeat-string.js x 15,803,340 ops/sec ±0.74% (92 runs sampled)\n repeating.js x 9,668,300 ops/sec ±0.89% (98 runs sampled)\n\n# 5x\n repeat-string.js x 16,926,291 ops/sec ±0.78% (97 runs sampled)\n repeating.js x 12,215,384 ops/sec ±1.01% (96 runs sampled)\n```\n\n**Run the benchmarks**\n\nInstall dev dependencies:\n\n```bash\nnpm i -d && node benchmark\n```\n\n### Other javascript/node.js utils\n[repeat-element](https://github.com/jonschlinkert/repeat-element): Create an array by repeating the given string n times.\n\n## Contributing\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/repeat-string/issues)\n\n## Running tests\nInstall dev dependencies:\n\n```bash\nnpm i -d && npm test\n```\n\n## Author\n\n**Jon Schlinkert**\n\n+ [github/jonschlinkert](https://github.com/jonschlinkert)\n+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert) \n\n## License\nCopyright (c) 2015 Jon Schlinkert \nReleased under the MIT license\n\n***\n\n_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on April 01, 2015._\n",
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "git://github.com/jonschlinkert/repeat-string.git"
},
"scripts": {
"test": "mocha"
},
"version": "1.5.2"
}