GT2/GT2-Android/node_modules/replace-string/package.json

117 lines
4.3 KiB
JSON
Raw Normal View History

{
"_args": [
[
{
"raw": "replace-string@^1.1.0",
"scope": null,
"escapedName": "replace-string",
"name": "replace-string",
"rawSpec": "^1.1.0",
"spec": ">=1.1.0 <2.0.0",
"type": "range"
},
"/home/jdaugherty/work/GT2/GT2-Android/node_modules/xdl"
]
],
"_from": "replace-string@>=1.1.0 <2.0.0",
"_id": "replace-string@1.1.0",
"_inCache": true,
"_location": "/replace-string",
"_nodeVersion": "4.6.2",
"_npmOperationalInternal": {
"host": "packages-12-west.internal.npmjs.com",
"tmp": "tmp/replace-string-1.1.0.tgz_1484119460096_0.7858717523049563"
},
"_npmUser": {
"name": "sindresorhus",
"email": "sindresorhus@gmail.com"
},
"_npmVersion": "2.15.11",
"_phantomChildren": {},
"_requested": {
"raw": "replace-string@^1.1.0",
"scope": null,
"escapedName": "replace-string",
"name": "replace-string",
"rawSpec": "^1.1.0",
"spec": ">=1.1.0 <2.0.0",
"type": "range"
},
"_requiredBy": [
"/xdl"
],
"_resolved": "https://registry.npmjs.org/replace-string/-/replace-string-1.1.0.tgz",
"_shasum": "87062117f823fe5800c306bacb2cfa359b935fea",
"_shrinkwrap": null,
"_spec": "replace-string@^1.1.0",
"_where": "/home/jdaugherty/work/GT2/GT2-Android/node_modules/xdl",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
"bugs": {
"url": "https://github.com/sindresorhus/replace-string/issues"
},
"dependencies": {},
"description": "Replace all substring matches in a string",
"devDependencies": {
"ava": "*",
"xo": "*"
},
"directories": {},
"dist": {
"shasum": "87062117f823fe5800c306bacb2cfa359b935fea",
"tarball": "https://registry.npmjs.org/replace-string/-/replace-string-1.1.0.tgz"
},
"engines": {
"node": ">=4"
},
"files": [
"index.js"
],
"gitHead": "236a8774847d66418531a5d9c0d3940ccffb7219",
"homepage": "https://github.com/sindresorhus/replace-string#readme",
"keywords": [
"replace",
"string",
"str",
"text",
"all",
"many",
"multiple",
"global",
"match",
"matches",
"replacement",
"replacer",
"modify",
"substring",
"sub-string",
"needle",
"search"
],
"license": "MIT",
"maintainers": [
{
"name": "sindresorhus",
"email": "sindresorhus@gmail.com"
}
],
"name": "replace-string",
"optionalDependencies": {},
"readme": "# replace-string [![Build Status](https://travis-ci.org/sindresorhus/replace-string.svg?branch=master)](https://travis-ci.org/sindresorhus/replace-string)\n\n> Replace all substring matches in a string\n\nSimilar to `String#replace()`, but supports replacing multiple matches. You could achieve something similar by putting the string in a `RegExp` constructor with the global flag and passing it to `String#replace()`, but you would then have to first escape the string anyways.\n\n\n## Install\n\n```\n$ npm install --save replace-string\n```\n\n\n## Usage\n\n```js\nconst replaceString = require('replace-string');\n\nconst input = 'My friend has a 🐑. I want a 🐑 too!';\n\nreplaceString(input, '🐑', '🦄');\n//=> 'My friend has a 🦄. I want a 🦄 too!'\n```\n\n\n## API\n\n### replaceString(input, needle, replacement, [options])\n\nReturns a new string with all `needle` matches replaced with `replacement`.\n\n#### input\n\nType: `string`\n\nString to work on.\n\n#### needle\n\nType: `string`\n\nString to match in `input`.\n\n#### replacement\n\nType: `string` `Function`\n\nReplacement for `needle` matches.\n\nIf a function, it receives the following arguments; the `needle`, the match count, and the `input`:\n\n```js\nreplaceString('Foo 🐑 Bar', '🐑', (needle, matchCount, input) => `${needle}❤️`);\n//=> 'Foo 🐑❤️ Bar'\n```\n\n#### options\n\nType: `Object`\n\n##### fromIndex\n\nType: `number`<br>\nDefault: `0`\n\nIndex at which to start replacing.\n\n\n## Related\n\n- [execall](https://github.com/sindresorhus/execall) - Find multiple `RegExp` matches in a string\n\n\n## License\n\nMIT © [Sindre Sorhus](https://sindresorhus.com)\n",
"readmeFilename": "readme.md",
"repository": {
"type": "git",
"url": "git+https://github.com/sindresorhus/replace-string.git"
},
"scripts": {
"test": "xo && ava"
},
"version": "1.1.0",
"xo": {
"esnext": true
}
}