{ "_args": [ [ { "raw": "resolve-from@^3.0.0", "scope": null, "escapedName": "resolve-from", "name": "resolve-from", "rawSpec": "^3.0.0", "spec": ">=3.0.0 <4.0.0", "type": "range" }, "/home/jdaugherty/work/GT2/GT2-Android/node_modules/resolve-cwd" ] ], "_from": "resolve-from@>=3.0.0 <4.0.0", "_id": "resolve-from@3.0.0", "_inCache": true, "_location": "/resolve-from", "_nodeVersion": "4.7.3", "_npmOperationalInternal": { "host": "packages-18-east.internal.npmjs.com", "tmp": "tmp/resolve-from-3.0.0.tgz_1493366293559_0.5914990743622184" }, "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "_npmVersion": "2.15.11", "_phantomChildren": {}, "_requested": { "raw": "resolve-from@^3.0.0", "scope": null, "escapedName": "resolve-from", "name": "resolve-from", "rawSpec": "^3.0.0", "spec": ">=3.0.0 <4.0.0", "type": "range" }, "_requiredBy": [ "/resolve-cwd" ], "_resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-3.0.0.tgz", "_shasum": "b22c7af7d9d6881bc8b6e653335eebcb0a188748", "_shrinkwrap": null, "_spec": "resolve-from@^3.0.0", "_where": "/home/jdaugherty/work/GT2/GT2-Android/node_modules/resolve-cwd", "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": { "shasum": "b22c7af7d9d6881bc8b6e653335eebcb0a188748", "tarball": "https://registry.npmjs.org/resolve-from/-/resolve-from-3.0.0.tgz" }, "engines": { "node": ">=4" }, "files": [ "index.js" ], "gitHead": "c3a318d7144b9cc22488f5d2f3884b6c8c05a05a", "homepage": "https://github.com/sindresorhus/resolve-from#readme", "keywords": [ "require", "resolve", "path", "module", "from", "like", "import", "path" ], "license": "MIT", "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" } ], "name": "resolve-from", "optionalDependencies": {}, "readme": "# resolve-from [![Build Status](https://travis-ci.org/sindresorhus/resolve-from.svg?branch=master)](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 --save 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- [req-from](https://github.com/sindresorhus/req-from) - Require a module from a given path\n- [req-cwd](https://github.com/sindresorhus/req-cwd) - Require 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- [lazy-req](https://github.com/sindresorhus/lazy-req) - Require modules lazily\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": "3.0.0" }