@zkochan/pnpm
Version:
Fast, disk space efficient package manager
105 lines (104 loc) • 4.64 kB
JSON
{
"_args": [
[
{
"raw": "resolve-from@^4.0.0",
"scope": null,
"escapedName": "resolve-from",
"name": "resolve-from",
"rawSpec": "^4.0.0",
"spec": ">=4.0.0 <5.0.0",
"type": "range"
},
"/home/zkochan/src/pnpm/packages/pnpm/node_modules/@zkochan/npm-lifecycle"
]
],
"_from": "resolve-from@>=4.0.0 <5.0.0",
"_id": "resolve-from@4.0.0",
"_inCache": true,
"_location": "/resolve-from",
"_nodeVersion": "8.5.0",
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/resolve-from-4.0.0.tgz_1506160096801_0.3549803947098553"
},
"_npmUser": {
"name": "sindresorhus",
"email": "sindresorhus@gmail.com"
},
"_npmVersion": "5.3.0",
"_phantomChildren": {},
"_requested": {
"raw": "resolve-from@^4.0.0",
"scope": null,
"escapedName": "resolve-from",
"name": "resolve-from",
"rawSpec": "^4.0.0",
"spec": ">=4.0.0 <5.0.0",
"type": "range"
},
"_requiredBy": [
"/@zkochan/npm-lifecycle"
],
"_resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz",
"_shasum": "4abcd852ad32dd7baabfe9b40e00a36db5f392e6",
"_shrinkwrap": null,
"_spec": "resolve-from@^4.0.0",
"_where": "/home/zkochan/src/pnpm/packages/pnpm/node_modules/@zkochan/npm-lifecycle",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
"bugs": {
"url": "https://github.com/sindresorhus/resolve-from/issues"
},
"dependencies": {},
"description": "Resolve the path of a module like `require.resolve()` but from a given path",
"devDependencies": {
"ava": "*",
"xo": "*"
},
"directories": {},
"dist": {
"integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==",
"shasum": "4abcd852ad32dd7baabfe9b40e00a36db5f392e6",
"tarball": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz"
},
"engines": {
"node": ">=4"
},
"files": [
"index.js"
],
"gitHead": "60cd04e69135b96b98b848fff719b1276a5610c0",
"homepage": "https://github.com/sindresorhus/resolve-from#readme",
"keywords": [
"require",
"resolve",
"path",
"module",
"from",
"like",
"import"
],
"license": "MIT",
"maintainers": [
{
"name": "sindresorhus",
"email": "sindresorhus@gmail.com"
}
],
"name": "resolve-from",
"optionalDependencies": {},
"readme": "# resolve-from [](https://travis-ci.org/sindresorhus/resolve-from)\n\n> Resolve the path of a module like [`require.resolve()`](https://nodejs.org/api/globals.html#globals_require_resolve) but from a given path\n\n\n## Install\n\n```\n$ npm install resolve-from\n```\n\n\n## Usage\n\n```js\nconst resolveFrom = require('resolve-from');\n\n// There is a file at `./foo/bar.js`\n\nresolveFrom('foo', './bar');\n//=> '/Users/sindresorhus/dev/test/foo/bar.js'\n```\n\n\n## API\n\n### resolveFrom(fromDir, moduleId)\n\nLike `require()`, throws when the module can't be found.\n\n### resolveFrom.silent(fromDir, moduleId)\n\nReturns `null` instead of throwing when the module can't be found.\n\n#### fromDir\n\nType: `string`\n\nDirectory to resolve from.\n\n#### moduleId\n\nType: `string`\n\nWhat you would use in `require()`.\n\n\n## Tip\n\nCreate a partial using a bound function if you want to resolve from the same `fromDir` multiple times:\n\n```js\nconst resolveFromFoo = resolveFrom.bind(null, 'foo');\n\nresolveFromFoo('./bar');\nresolveFromFoo('./baz');\n```\n\n\n## Related\n\n- [resolve-cwd](https://github.com/sindresorhus/resolve-cwd) - Resolve the path of a module from the current working directory\n- [import-from](https://github.com/sindresorhus/import-from) - Import a module from a given path\n- [import-cwd](https://github.com/sindresorhus/import-cwd) - Import a module from the current working directory\n- [resolve-pkg](https://github.com/sindresorhus/resolve-pkg) - Resolve the path of a package regardless of it having an entry point\n- [import-lazy](https://github.com/sindresorhus/import-lazy) - Import a module lazily\n- [resolve-global](https://github.com/sindresorhus/resolve-global) - Resolve the path of a globally installed module\n\n\n## License\n\nMIT © [Sindre Sorhus](https://sindresorhus.com)\n",
"readmeFilename": "readme.md",
"repository": {
"type": "git",
"url": "git+https://github.com/sindresorhus/resolve-from.git"
},
"scripts": {
"test": "xo && ava"
},
"version": "4.0.0"
}