{"name":"repeat-string","description":"Repeat the given string n times. Fastest implementation for repeating a string.","version":"1.5.2","homepage":"https://github.com/jonschlinkert/repeat-string","author":{"name":"Jon Schlinkert","url":"http://github.com/jonschlinkert/"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/repeat-string.git"},"bugs":{"url":"https://github.com/jonschlinkert/repeat-string/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/repeat-string/blob/master/LICENSE"},"files":["index.js"],"main":"index.js","engines":{"node":">=0.10"},"scripts":{"test":"mocha"},"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"},"keywords":["fast","fastest","fill","left","left-pad","multiple","pad","padding","repetition","repeat","repeating","right","right-pad","string","times"],"readme":"# repeat-string [![NPM version](https://badge.fury.io/js/repeat-string.svg)](http://badge.fury.io/js/repeat-string)  [![Build Status](https://travis-ci.org/jonschlinkert/repeat-string.svg)](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","_id":"repeat-string@1.5.2","_shasum":"21065f70727ad053a0dd5e957ac9e00c7560d90a","_from":"https://registry.npmjs.org/repeat-string/-/repeat-string-1.5.2.tgz","_resolved":"https://registry.npmjs.org/repeat-string/-/repeat-string-1.5.2.tgz"}