GT2/GT2-Android/node_modules/match-require/package.json

123 lines
4.8 KiB
JSON

{
"_args": [
[
{
"raw": "match-require@^2.0.0",
"scope": null,
"escapedName": "match-require",
"name": "match-require",
"rawSpec": "^2.0.0",
"spec": ">=2.0.0 <3.0.0",
"type": "range"
},
"/home/jdaugherty/work/GT2/GT2-Android/node_modules/react-native-scripts"
]
],
"_from": "match-require@>=2.0.0 <3.0.0",
"_id": "match-require@2.1.0",
"_inCache": true,
"_location": "/match-require",
"_nodeVersion": "6.10.0",
"_npmOperationalInternal": {
"host": "packages-12-west.internal.npmjs.com",
"tmp": "tmp/match-require-2.1.0.tgz_1490939452745_0.37760833464562893"
},
"_npmUser": {
"name": "yiminghe",
"email": "yiminghe@gmail.com"
},
"_npmVersion": "3.10.10",
"_phantomChildren": {},
"_requested": {
"raw": "match-require@^2.0.0",
"scope": null,
"escapedName": "match-require",
"name": "match-require",
"rawSpec": "^2.0.0",
"spec": ">=2.0.0 <3.0.0",
"type": "range"
},
"_requiredBy": [
"/react-native-scripts"
],
"_resolved": "https://registry.npmjs.org/match-require/-/match-require-2.1.0.tgz",
"_shasum": "f67d62c4cb1d703f408fb63b55b9ae83fb25e2cc",
"_shrinkwrap": null,
"_spec": "match-require@^2.0.0",
"_where": "/home/jdaugherty/work/GT2/GT2-Android/node_modules/react-native-scripts",
"author": {
"name": "yiminghe@gmail.com"
},
"babel": {
"presets": [
"es2015-ie",
"stage-0"
],
"plugins": [
"add-module-exports"
]
},
"bugs": {
"url": "http://github.com/yiminghe/match-require/issues"
},
"config": {
"port": 8888
},
"dependencies": {
"uuid": "^3.0.0"
},
"description": "find require calls from string using regexp",
"devDependencies": {
"babel-cli": "^6.7.5",
"babel-plugin-add-module-exports": "~0.1.2",
"babel-preset-es2015-ie": "^6.6.2",
"babel-preset-stage-0": "6.5.x",
"coveralls": "~2.10.0",
"eslint": "~0.24.0",
"expect.js": "~0.3.1",
"istanbul": "~0.2.10",
"mocha": "~1.19.0"
},
"directories": {},
"dist": {
"shasum": "f67d62c4cb1d703f408fb63b55b9ae83fb25e2cc",
"tarball": "https://registry.npmjs.org/match-require/-/match-require-2.1.0.tgz"
},
"files": [
"lib"
],
"gitHead": "ba847d9b0cc783a5b67f4af9518a667d813d5a7b",
"homepage": "http://github.com/yiminghe/match-require",
"keywords": [
"require",
"regexp"
],
"licenses": "MIT",
"main": "lib/index",
"maintainers": [
{
"name": "yiminghe",
"email": "yiminghe@gmail.com"
}
],
"name": "match-require",
"optionalDependencies": {},
"precommit": [
"lint"
],
"readme": "# match-require\n\n[![NPM version](https://nodei.co/npm/match-require.png)](https://npmjs.org/package/match-require)\n[![NPM downloads](http://img.shields.io/npm/dm/match-require.svg)](https://npmjs.org/package/match-require)\n[![Build Status](https://travis-ci.org/yiminghe/match-require.svg?branch=master)](https://travis-ci.org/yiminghe/match-require)\n[![Coverage Status](https://coveralls.io/repos/yiminghe/match-require/badge.svg?branch=master)](https://coveralls.io/r/yiminghe/match-require?branch=master)\n\nfind/replace dependencies using regexp\n\n## examples\n\n```js\nconst matchRequire = require('match-require');\n\n it('findAll works', () => {\n const content = ['// require(\"2\")',\n 'require(\"3\");',\n '/* require(\"2\") */',\n 'require(\"4\")'\n ].join('\\n');\n\n const ret = matchRequire.findAll(content);\n\n expect(ret).to.eql(['3', '4']);\n });\n\n it('replaceAll works', () => {\n const content = ['// require(\"2\")',\n 'require(\"3\");',\n '/* require(\"2\") */',\n 'require(\"4\")'\n ].join('\\n');\n\n const ret = matchRequire.replaceAll(content, (dep) => {\n return dep === '4' ? '5' : dep;\n });\n\n expect(ret).to.eql([\n 'require(\"3\");',\n '',\n 'require(\"5\")'\n ].join('\\n'));\n });\n\n it('import works', () => {\n const content = ['// import \"2\"',\n 'import x from \"3\";',\n 'console.import(\"1\")',\n '/* import \"2\" */',\n 'import {z} from \"4\";',\n `import {\n x,\n y,\n z,\n} from \"5\";`,\n ].join('\\n');\n\n const ret = matchRequire.findAll(content);\n\n expect(ret).to.eql(['3', '4', '5']);\n });\n\n```\n\n## history\n\n### 2.1.0\n\n- add replaceAll\n",
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/yiminghe/match-require.git"
},
"scripts": {
"build": "rm -rf lib && babel src --out-dir lib",
"cover": "node ./node_modules/istanbul/lib/cli cover ./node_modules/mocha/bin/_mocha -- -R list tests/spec/",
"lint": "eslint src",
"pub": "npm run build && npm publish && rm -rf lib && git push origin",
"test": "node ./node_modules/mocha/bin/mocha -R list tests/spec"
},
"version": "2.1.0"
}