117 lines
3.7 KiB
JSON
117 lines
3.7 KiB
JSON
{
|
|
"_args": [
|
|
[
|
|
{
|
|
"raw": "import-local@^1.0.0",
|
|
"scope": null,
|
|
"escapedName": "import-local",
|
|
"name": "import-local",
|
|
"rawSpec": "^1.0.0",
|
|
"spec": ">=1.0.0 <2.0.0",
|
|
"type": "range"
|
|
},
|
|
"/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/jest"
|
|
]
|
|
],
|
|
"_from": "import-local@>=1.0.0 <2.0.0",
|
|
"_id": "import-local@1.0.0",
|
|
"_inCache": true,
|
|
"_location": "/import-local",
|
|
"_nodeVersion": "8.9.0",
|
|
"_npmOperationalInternal": {
|
|
"host": "s3://npm-registry-packages",
|
|
"tmp": "tmp/import-local-1.0.0.tgz_1513333080491_0.8174301576800644"
|
|
},
|
|
"_npmUser": {
|
|
"name": "sindresorhus",
|
|
"email": "sindresorhus@gmail.com"
|
|
},
|
|
"_npmVersion": "5.5.1",
|
|
"_phantomChildren": {},
|
|
"_requested": {
|
|
"raw": "import-local@^1.0.0",
|
|
"scope": null,
|
|
"escapedName": "import-local",
|
|
"name": "import-local",
|
|
"rawSpec": "^1.0.0",
|
|
"spec": ">=1.0.0 <2.0.0",
|
|
"type": "range"
|
|
},
|
|
"_requiredBy": [
|
|
"/jest",
|
|
"/jest/jest-cli"
|
|
],
|
|
"_resolved": "https://registry.npmjs.org/import-local/-/import-local-1.0.0.tgz",
|
|
"_shasum": "5e4ffdc03f4fe6c009c6729beb29631c2f8227bc",
|
|
"_shrinkwrap": null,
|
|
"_spec": "import-local@^1.0.0",
|
|
"_where": "/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/jest",
|
|
"author": {
|
|
"name": "Sindre Sorhus",
|
|
"email": "sindresorhus@gmail.com",
|
|
"url": "sindresorhus.com"
|
|
},
|
|
"bin": {
|
|
"import-local-fixture": "fixtures/cli.js"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/sindresorhus/import-local/issues"
|
|
},
|
|
"dependencies": {
|
|
"pkg-dir": "^2.0.0",
|
|
"resolve-cwd": "^2.0.0"
|
|
},
|
|
"description": "Let a globally installed package use a locally installed version of itself if available",
|
|
"devDependencies": {
|
|
"ava": "*",
|
|
"cpy": "^6.0.0",
|
|
"del": "^3.0.0",
|
|
"execa": "^0.8.0",
|
|
"xo": "*"
|
|
},
|
|
"directories": {},
|
|
"dist": {
|
|
"integrity": "sha512-vAaZHieK9qjGo58agRBg+bhHX3hoTZU/Oa3GESWLz7t1U62fk63aHuDJJEteXoDeTCcPmUT+z38gkHPZkkmpmQ==",
|
|
"shasum": "5e4ffdc03f4fe6c009c6729beb29631c2f8227bc",
|
|
"tarball": "https://registry.npmjs.org/import-local/-/import-local-1.0.0.tgz"
|
|
},
|
|
"engines": {
|
|
"node": ">=4"
|
|
},
|
|
"files": [
|
|
"index.js",
|
|
"fixtures/cli.js"
|
|
],
|
|
"gitHead": "b3a40b30273907ddcf53d7c9df9687ef02d5d6dc",
|
|
"homepage": "https://github.com/sindresorhus/import-local#readme",
|
|
"keywords": [
|
|
"import",
|
|
"local",
|
|
"require",
|
|
"resolve",
|
|
"global",
|
|
"version",
|
|
"prefer",
|
|
"cli"
|
|
],
|
|
"license": "MIT",
|
|
"maintainers": [
|
|
{
|
|
"name": "sindresorhus",
|
|
"email": "sindresorhus@gmail.com"
|
|
}
|
|
],
|
|
"name": "import-local",
|
|
"optionalDependencies": {},
|
|
"readme": "# import-local [![Build Status](https://travis-ci.org/sindresorhus/import-local.svg?branch=master)](https://travis-ci.org/sindresorhus/import-local)\n\n> Let a globally installed package use a locally installed version of itself if available\n\nUseful for CLI tools that want to defer to the user's locally installed version when available, but still work if it's not installed locally. For example, [AVA](http://ava.li) and [XO](https://github.com/sindresorhus/xo) uses this method.\n\n\n## Install\n\n```\n$ npm install import-local\n```\n\n\n## Usage\n\n```js\nconst importLocal = require('import-local');\n\nif (importLocal(__filename)) {\n\tconsole.log('Using local version of this package');\n} else {\n\t// Code for both global and local version here…\n}\n```\n\n\n## License\n\nMIT © [Sindre Sorhus](https://sindresorhus.com)\n",
|
|
"readmeFilename": "readme.md",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/sindresorhus/import-local.git"
|
|
},
|
|
"scripts": {
|
|
"test": "xo && ava"
|
|
},
|
|
"version": "1.0.0"
|
|
}
|