247 lines
10 KiB
JSON
247 lines
10 KiB
JSON
{
|
|
"_args": [
|
|
[
|
|
{
|
|
"raw": "resolve@^1.2.0",
|
|
"scope": null,
|
|
"escapedName": "resolve",
|
|
"name": "resolve",
|
|
"rawSpec": "^1.2.0",
|
|
"spec": ">=1.2.0 <2.0.0",
|
|
"type": "range"
|
|
},
|
|
"/home/jdaugherty/work/GT2/GT2-Android/node_modules/babel-plugin-module-resolver"
|
|
]
|
|
],
|
|
"_from": "resolve@>=1.2.0 <2.0.0",
|
|
"_id": "resolve@1.5.0",
|
|
"_inCache": true,
|
|
"_location": "/resolve",
|
|
"_nodeVersion": "8.8.0",
|
|
"_npmOperationalInternal": {
|
|
"host": "s3://npm-registry-packages",
|
|
"tmp": "tmp/resolve-1.5.0.tgz_1508892739498_0.5415699891746044"
|
|
},
|
|
"_npmUser": {
|
|
"name": "ljharb",
|
|
"email": "ljharb@gmail.com"
|
|
},
|
|
"_npmVersion": "5.5.1",
|
|
"_phantomChildren": {},
|
|
"_requested": {
|
|
"raw": "resolve@^1.2.0",
|
|
"scope": null,
|
|
"escapedName": "resolve",
|
|
"name": "resolve",
|
|
"rawSpec": "^1.2.0",
|
|
"spec": ">=1.2.0 <2.0.0",
|
|
"type": "range"
|
|
},
|
|
"_requiredBy": [
|
|
"/babel-plugin-module-resolver"
|
|
],
|
|
"_resolved": "https://registry.npmjs.org/resolve/-/resolve-1.5.0.tgz",
|
|
"_shasum": "1f09acce796c9a762579f31b2c1cc4c3cddf9f36",
|
|
"_shrinkwrap": null,
|
|
"_spec": "resolve@^1.2.0",
|
|
"_where": "/home/jdaugherty/work/GT2/GT2-Android/node_modules/babel-plugin-module-resolver",
|
|
"author": {
|
|
"name": "James Halliday",
|
|
"email": "mail@substack.net",
|
|
"url": "http://substack.net"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/browserify/node-resolve/issues"
|
|
},
|
|
"dependencies": {
|
|
"path-parse": "^1.0.5"
|
|
},
|
|
"description": "resolve like require.resolve() on behalf of files asynchronously and synchronously",
|
|
"devDependencies": {
|
|
"@ljharb/eslint-config": "^12.2.1",
|
|
"eslint": "^4.9.0",
|
|
"object-keys": "^1.0.11",
|
|
"safe-publish-latest": "^1.1.1",
|
|
"tap": "0.4.13",
|
|
"tape": "^4.8.0"
|
|
},
|
|
"directories": {},
|
|
"dist": {
|
|
"integrity": "sha512-hgoSGrc3pjzAPHNBg+KnFcK2HwlHTs/YrAGUr6qgTVUZmXv1UEXXl0bZNBKMA9fud6lRYFdPGz0xXxycPzmmiw==",
|
|
"shasum": "1f09acce796c9a762579f31b2c1cc4c3cddf9f36",
|
|
"tarball": "https://registry.npmjs.org/resolve/-/resolve-1.5.0.tgz"
|
|
},
|
|
"gitHead": "19cbd5e0b67c78176e771a1a6fa3a6ffd478e3ac",
|
|
"homepage": "https://github.com/browserify/node-resolve#readme",
|
|
"keywords": [
|
|
"resolve",
|
|
"require",
|
|
"node",
|
|
"module"
|
|
],
|
|
"license": "MIT",
|
|
"main": "index.js",
|
|
"maintainers": [
|
|
{
|
|
"name": "ljharb",
|
|
"email": "ljharb@gmail.com"
|
|
},
|
|
{
|
|
"name": "substack",
|
|
"email": "substack@gmail.com"
|
|
},
|
|
{
|
|
"name": "bpostlethwaite",
|
|
"email": "post.ben.here@gmail.com"
|
|
},
|
|
{
|
|
"name": "goto-bus-stop",
|
|
"email": "rene@kooi.me"
|
|
},
|
|
{
|
|
"name": "fpereira1",
|
|
"email": "pereira.filype@gmail.com"
|
|
},
|
|
{
|
|
"name": "hughsk",
|
|
"email": "hughskennedy@gmail.com"
|
|
},
|
|
{
|
|
"name": "mattdesl",
|
|
"email": "dave.des@gmail.com"
|
|
},
|
|
{
|
|
"name": "anandthakker",
|
|
"email": "vestibule@anandthakker.net"
|
|
},
|
|
{
|
|
"name": "bret",
|
|
"email": "bcomnes@gmail.com"
|
|
},
|
|
{
|
|
"name": "garann",
|
|
"email": "garann@gmail.com"
|
|
},
|
|
{
|
|
"name": "leichtgewicht",
|
|
"email": "martin.heidegger@gmail.com"
|
|
},
|
|
{
|
|
"name": "forbeslindesay",
|
|
"email": "forbes@lindesay.co.uk"
|
|
},
|
|
{
|
|
"name": "yerkopalma",
|
|
"email": "yerko.palma@usach.cl"
|
|
},
|
|
{
|
|
"name": "parshap",
|
|
"email": "parshap+npm@gmail.com"
|
|
},
|
|
{
|
|
"name": "elnounch",
|
|
"email": "contact@elnounch.net"
|
|
},
|
|
{
|
|
"name": "ahdinosaur",
|
|
"email": "michael.williams@enspiral.com"
|
|
},
|
|
{
|
|
"name": "ungoldman",
|
|
"email": "ungoldman@gmail.com"
|
|
},
|
|
{
|
|
"name": "yoshuawuyts",
|
|
"email": "i@yoshuawuyts.com"
|
|
},
|
|
{
|
|
"name": "sethvincent",
|
|
"email": "sethvincent@gmail.com"
|
|
},
|
|
{
|
|
"name": "jryans",
|
|
"email": "jryans@gmail.com"
|
|
},
|
|
{
|
|
"name": "indutny",
|
|
"email": "fedor@indutny.com"
|
|
},
|
|
{
|
|
"name": "jprichardson",
|
|
"email": "jprichardson@gmail.com"
|
|
},
|
|
{
|
|
"name": "dcousens",
|
|
"email": "npm@dcousens.com"
|
|
},
|
|
{
|
|
"name": "cwmma",
|
|
"email": "calvin.metcalf@gmail.com"
|
|
},
|
|
{
|
|
"name": "balupton",
|
|
"email": "b@lupton.cc"
|
|
},
|
|
{
|
|
"name": "ashaffer88",
|
|
"email": "darawk@gmail.com"
|
|
},
|
|
{
|
|
"name": "mellowmelon",
|
|
"email": "palmermebane@gmail.com"
|
|
},
|
|
{
|
|
"name": "jmm",
|
|
"email": "npm-public@jessemccarthy.net"
|
|
},
|
|
{
|
|
"name": "terinjokes",
|
|
"email": "terinjokes@gmail.com"
|
|
},
|
|
{
|
|
"name": "thlorenz",
|
|
"email": "thlorenz@gmx.de"
|
|
},
|
|
{
|
|
"name": "dominictarr",
|
|
"email": "dominic.tarr@gmail.com"
|
|
},
|
|
{
|
|
"name": "maxogden",
|
|
"email": "max@maxogden.com"
|
|
},
|
|
{
|
|
"name": "mafintosh",
|
|
"email": "mathiasbuus@gmail.com"
|
|
},
|
|
{
|
|
"name": "zertosh",
|
|
"email": "zertosh@gmail.com"
|
|
},
|
|
{
|
|
"name": "gkatsev",
|
|
"email": "me@gkatsev.com"
|
|
},
|
|
{
|
|
"name": "feross",
|
|
"email": "feross@feross.org"
|
|
}
|
|
],
|
|
"name": "resolve",
|
|
"optionalDependencies": {},
|
|
"readme": "# resolve\n\nimplements the [node `require.resolve()`\nalgorithm](https://nodejs.org/api/modules.html#modules_all_together)\nsuch that you can `require.resolve()` on behalf of a file asynchronously and\nsynchronously\n\n[![build status](https://secure.travis-ci.org/browserify/node-resolve.png)](http://travis-ci.org/browserify/node-resolve)\n\n# example\n\nasynchronously resolve:\n\n``` js\nvar resolve = require('resolve');\nresolve('tap', { basedir: __dirname }, function (err, res) {\n if (err) console.error(err)\n else console.log(res)\n});\n```\n\n```\n$ node example/async.js\n/home/substack/projects/node-resolve/node_modules/tap/lib/main.js\n```\n\nsynchronously resolve:\n\n``` js\nvar resolve = require('resolve');\nvar res = resolve.sync('tap', { basedir: __dirname });\nconsole.log(res);\n```\n\n```\n$ node example/sync.js\n/home/substack/projects/node-resolve/node_modules/tap/lib/main.js\n```\n\n# methods\n\n``` js\nvar resolve = require('resolve')\n```\n\n## resolve(id, opts={}, cb)\n\nAsynchronously resolve the module path string `id` into `cb(err, res [, pkg])`, where `pkg` (if defined) is the data from `package.json`.\n\noptions are:\n\n* opts.basedir - directory to begin resolving from\n\n* opts.package - `package.json` data applicable to the module being loaded\n\n* opts.extensions - array of file extensions to search in order\n\n* opts.readFile - how to read files asynchronously\n\n* opts.isFile - function to asynchronously test whether a file exists\n\n* opts.packageFilter - transform the parsed package.json contents before looking\nat the \"main\" field\n\n* opts.pathFilter(pkg, path, relativePath) - transform a path within a package\n * pkg - package data\n * path - the path being resolved\n * relativePath - the path relative from the package.json location\n * returns - a relative path that will be joined from the package.json location\n\n* opts.paths - require.paths array to use if nothing is found on the normal\nnode_modules recursive walk (probably don't use this)\n\n* opts.moduleDirectory - directory (or directories) in which to recursively look for modules. default: `\"node_modules\"`\n\n* opts.preserveSymlinks - if true, doesn't resolve `basedir` to real path before resolving.\nThis is the way Node resolves dependencies when executed with the [--preserve-symlinks](https://nodejs.org/api/all.html#cli_preserve_symlinks) flag.\n**Note:** this property is currently `true` by default but it will be changed to\n`false` in the next major version because *Node's resolution algorithm does not preserve symlinks by default*.\n\ndefault `opts` values:\n\n``` javascript\n{\n paths: [],\n basedir: __dirname,\n extensions: [ '.js' ],\n readFile: fs.readFile,\n isFile: function (file, cb) {\n fs.stat(file, function (err, stat) {\n if (err && err.code === 'ENOENT') cb(null, false)\n else if (err) cb(err)\n else cb(null, stat.isFile())\n });\n },\n moduleDirectory: 'node_modules',\n preserveSymlinks: true\n}\n```\n\n## resolve.sync(id, opts)\n\nSynchronously resolve the module path string `id`, returning the result and\nthrowing an error when `id` can't be resolved.\n\noptions are:\n\n* opts.basedir - directory to begin resolving from\n\n* opts.extensions - array of file extensions to search in order\n\n* opts.readFile - how to read files synchronously\n\n* opts.isFile - function to synchronously test whether a file exists\n\n* `opts.packageFilter(pkg, pkgfile)` - transform the parsed package.json\n* contents before looking at the \"main\" field\n\n* opts.paths - require.paths array to use if nothing is found on the normal\nnode_modules recursive walk (probably don't use this)\n\n* opts.moduleDirectory - directory (or directories) in which to recursively look for modules. default: `\"node_modules\"`\n\n* opts.preserveSymlinks - if true, doesn't resolve `basedir` to real path before resolving.\nThis is the way Node resolves dependencies when executed with the [--preserve-symlinks](https://nodejs.org/api/all.html#cli_preserve_symlinks) flag.\n**Note:** this property is currently `true` by default but it will be changed to\n`false` in the next major version because *Node's resolution algorithm does not preserve symlinks by default*.\n\ndefault `opts` values:\n\n``` javascript\n{\n paths: [],\n basedir: __dirname,\n extensions: [ '.js' ],\n readFileSync: fs.readFileSync,\n isFile: function (file) {\n try { return fs.statSync(file).isFile() }\n catch (e) { return false }\n },\n moduleDirectory: 'node_modules',\n preserveSymlinks: true\n}\n````\n\n## resolve.isCore(pkg)\n\nReturn whether a package is in core.\n\n# install\n\nWith [npm](https://npmjs.org) do:\n\n```\nnpm install resolve\n```\n\n# license\n\nMIT\n",
|
|
"readmeFilename": "readme.markdown",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git://github.com/browserify/node-resolve.git"
|
|
},
|
|
"scripts": {
|
|
"lint": "eslint .",
|
|
"prepublish": "safe-publish-latest",
|
|
"pretest": "npm run lint",
|
|
"test": "npm run --silent tests-only",
|
|
"tests-only": "tape test/*.js"
|
|
},
|
|
"version": "1.5.0"
|
|
}
|