171 lines
8.9 KiB
JSON
171 lines
8.9 KiB
JSON
{
|
|
"_args": [
|
|
[
|
|
{
|
|
"raw": "repeat-string@^1.5.2",
|
|
"scope": null,
|
|
"escapedName": "repeat-string",
|
|
"name": "repeat-string",
|
|
"rawSpec": "^1.5.2",
|
|
"spec": ">=1.5.2 <2.0.0",
|
|
"type": "range"
|
|
},
|
|
"/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/fill-range"
|
|
]
|
|
],
|
|
"_from": "repeat-string@>=1.5.2 <2.0.0",
|
|
"_id": "repeat-string@1.6.1",
|
|
"_inCache": true,
|
|
"_location": "/repeat-string",
|
|
"_nodeVersion": "6.7.0",
|
|
"_npmOperationalInternal": {
|
|
"host": "packages-12-west.internal.npmjs.com",
|
|
"tmp": "tmp/repeat-string-1.6.1.tgz_1477241638674_0.3764322670176625"
|
|
},
|
|
"_npmUser": {
|
|
"name": "jonschlinkert",
|
|
"email": "github@sellside.com"
|
|
},
|
|
"_npmVersion": "3.10.3",
|
|
"_phantomChildren": {},
|
|
"_requested": {
|
|
"raw": "repeat-string@^1.5.2",
|
|
"scope": null,
|
|
"escapedName": "repeat-string",
|
|
"name": "repeat-string",
|
|
"rawSpec": "^1.5.2",
|
|
"spec": ">=1.5.2 <2.0.0",
|
|
"type": "range"
|
|
},
|
|
"_requiredBy": [
|
|
"/align-text",
|
|
"/fill-range"
|
|
],
|
|
"_resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz",
|
|
"_shasum": "8dcae470e1c88abc2d600fff4a776286da75e637",
|
|
"_shrinkwrap": null,
|
|
"_spec": "repeat-string@^1.5.2",
|
|
"_where": "/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/fill-range",
|
|
"author": {
|
|
"name": "Jon Schlinkert",
|
|
"url": "http://github.com/jonschlinkert"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/jonschlinkert/repeat-string/issues"
|
|
},
|
|
"contributors": [
|
|
{
|
|
"name": "Brian Woodward",
|
|
"email": "brian.woodward@gmail.com",
|
|
"url": "https://github.com/doowb"
|
|
},
|
|
{
|
|
"name": "Jon Schlinkert",
|
|
"email": "jon.schlinkert@sellside.com",
|
|
"url": "http://twitter.com/jonschlinkert"
|
|
},
|
|
{
|
|
"name": "Linus Unnebäck",
|
|
"email": "linus@folkdatorn.se",
|
|
"url": "http://linus.unnebäck.se"
|
|
},
|
|
{
|
|
"name": "Thijs Busser",
|
|
"email": "tbusser@gmail.com",
|
|
"url": "http://tbusser.net"
|
|
},
|
|
{
|
|
"name": "Titus",
|
|
"email": "tituswormer@gmail.com",
|
|
"url": "wooorm.com"
|
|
}
|
|
],
|
|
"dependencies": {},
|
|
"description": "Repeat the given string n times. Fastest implementation for repeating a string.",
|
|
"devDependencies": {
|
|
"ansi-cyan": "^0.1.1",
|
|
"benchmarked": "^0.2.5",
|
|
"gulp-format-md": "^0.1.11",
|
|
"isobject": "^2.1.0",
|
|
"mocha": "^3.1.2",
|
|
"repeating": "^3.0.0",
|
|
"text-table": "^0.2.0",
|
|
"yargs-parser": "^4.0.2"
|
|
},
|
|
"directories": {},
|
|
"dist": {
|
|
"shasum": "8dcae470e1c88abc2d600fff4a776286da75e637",
|
|
"tarball": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz"
|
|
},
|
|
"engines": {
|
|
"node": ">=0.10"
|
|
},
|
|
"files": [
|
|
"index.js"
|
|
],
|
|
"gitHead": "1a95c5d99a02999ccd2cf4663959a18bd2def7b8",
|
|
"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": "MIT",
|
|
"main": "index.js",
|
|
"maintainers": [
|
|
{
|
|
"name": "jonschlinkert",
|
|
"email": "github@sellside.com"
|
|
},
|
|
{
|
|
"name": "doowb",
|
|
"email": "brian.woodward@gmail.com"
|
|
}
|
|
],
|
|
"name": "repeat-string",
|
|
"optionalDependencies": {},
|
|
"readme": "# repeat-string [![NPM version](https://img.shields.io/npm/v/repeat-string.svg?style=flat)](https://www.npmjs.com/package/repeat-string) [![NPM monthly downloads](https://img.shields.io/npm/dm/repeat-string.svg?style=flat)](https://npmjs.org/package/repeat-string) [![NPM total downloads](https://img.shields.io/npm/dt/repeat-string.svg?style=flat)](https://npmjs.org/package/repeat-string) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/repeat-string.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/repeat-string)\n\n> Repeat the given string n times. Fastest implementation for repeating a string.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save repeat-string\n```\n\n## Usage\n\n### [repeat](index.js#L41)\n\nRepeat the given `string` the specified `number` of times.\n\n**Example:**\n\n**Example**\n\n```js\nvar repeat = require('repeat-string');\nrepeat('A', 5);\n//=> AAAAA\n```\n\n**Params**\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## Benchmarks\n\nRepeat string is significantly faster than the native method (which is itself faster than [repeating](https://github.com/sindresorhus/repeating)):\n\n```sh\n# 2x\nrepeat-string █████████████████████████ (26,953,977 ops/sec)\nrepeating █████████ (9,855,695 ops/sec)\nnative ██████████████████ (19,453,895 ops/sec)\n\n# 3x\nrepeat-string █████████████████████████ (19,445,252 ops/sec)\nrepeating ███████████ (8,661,565 ops/sec)\nnative ████████████████████ (16,020,598 ops/sec)\n\n# 10x\nrepeat-string █████████████████████████ (23,792,521 ops/sec)\nrepeating █████████ (8,571,332 ops/sec)\nnative ███████████████ (14,582,955 ops/sec)\n\n# 50x\nrepeat-string █████████████████████████ (23,640,179 ops/sec)\nrepeating █████ (5,505,509 ops/sec)\nnative ██████████ (10,085,557 ops/sec)\n\n# 250x\nrepeat-string █████████████████████████ (23,489,618 ops/sec)\nrepeating ████ (3,962,937 ops/sec)\nnative ████████ (7,724,892 ops/sec)\n\n# 2000x\nrepeat-string █████████████████████████ (20,315,172 ops/sec)\nrepeating ████ (3,297,079 ops/sec)\nnative ███████ (6,203,331 ops/sec)\n\n# 20000x\nrepeat-string █████████████████████████ (23,382,915 ops/sec)\nrepeating ███ (2,980,058 ops/sec)\nnative █████ (5,578,808 ops/sec)\n```\n\n**Run the benchmarks**\n\nInstall dev dependencies:\n\n```sh\nnpm i -d && node benchmark\n```\n\n## About\n\n### Related projects\n\n[repeat-element](https://www.npmjs.com/package/repeat-element): Create an array by repeating the given value n times. | [homepage](https://github.com/jonschlinkert/repeat-element \"Create an array by repeating the given value n times.\")\n\n### Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n### Contributors\n\n| **Commits** | **Contributor**<br/> | \n| --- | --- |\n| 51 | [jonschlinkert](https://github.com/jonschlinkert) |\n| 2 | [LinusU](https://github.com/LinusU) |\n| 2 | [tbusser](https://github.com/tbusser) |\n| 1 | [doowb](https://github.com/doowb) |\n| 1 | [wooorm](https://github.com/wooorm) |\n\n### Building docs\n\n_(This document was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme) (a [verb](https://github.com/verbose/verb) generator), please don't edit the readme directly. Any changes to the readme must be made in [.verb.md](.verb.md).)_\n\nTo generate the readme and API documentation with [verb](https://github.com/verbose/verb):\n\n```sh\n$ npm install -g verb verb-generate-readme && verb\n```\n\n### Running tests\n\nInstall dev dependencies:\n\n```sh\n$ npm install -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\n\nCopyright © 2016, [Jon Schlinkert](http://github.com/jonschlinkert).\nReleased under the [MIT license](https://github.com/jonschlinkert/repeat-string/blob/master/LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.2.0, on October 23, 2016._",
|
|
"readmeFilename": "README.md",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/jonschlinkert/repeat-string.git"
|
|
},
|
|
"scripts": {
|
|
"test": "mocha"
|
|
},
|
|
"verb": {
|
|
"toc": false,
|
|
"layout": "default",
|
|
"tasks": [
|
|
"readme"
|
|
],
|
|
"plugins": [
|
|
"gulp-format-md"
|
|
],
|
|
"related": {
|
|
"list": [
|
|
"repeat-element"
|
|
]
|
|
},
|
|
"helpers": [
|
|
"./benchmark/helper.js"
|
|
],
|
|
"reflinks": [
|
|
"verb"
|
|
]
|
|
},
|
|
"version": "1.6.1"
|
|
}
|