{"_id":"snyk-resolve","_rev":"11-392dd2784e9570a77f1312293e35f6a6","name":"snyk-resolve","dist-tags":{"latest":"1.2.0"},"versions":{"1.0.0":{"name":"snyk-resolve","version":"1.0.0","keywords":["snyk"],"author":{"name":"Remy Sharp"},"license":"Apache-2.0","_id":"snyk-resolve@1.0.0","maintainers":[{"name":"remy","email":"remy@leftlogic.com"}],"homepage":"https://github.com/Snyk/resolve-package#readme","bugs":{"url":"https://github.com/Snyk/resolve-package/issues"},"dist":{"shasum":"bbe9196d37f57c39251e6be75ccdd5b2097e99a2","tarball":"https://registry.npmjs.org/snyk-resolve/-/snyk-resolve-1.0.0.tgz","integrity":"sha512-xKDZkvvYs41zKY3uxmcG3B5cPspztfmgiZ9K2+PJjBUS/xCPSR42Ji3aAplONLJXR+LfSJnWySwdXyp6bY5/xQ==","signatures":[{"sig":"MEYCIQD7wUQk6uDxwZBTZGqfMHnNZNBWEF9TvPjIJQOJxNmlpQIhAMmeWbfdT0e8MUw9HSvrbpTZES4DoRQsAIRDVn6CEcR4","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"lib/index.js","_from":".","_shasum":"bbe9196d37f57c39251e6be75ccdd5b2097e99a2","gitHead":"e04bd2a373333f498ec46d5a4937432d12e70a50","scripts":{"lint":"jscs lib/*.js -v","test":"npm run lint && tap test/*.test.js --cov --timeout=60","semantic-release":"semantic-release pre && npm publish && semantic-release post"},"_npmUser":{"name":"remy","email":"remy@leftlogic.com"},"repository":{"url":"git+https://github.com/Snyk/resolve-package.git","type":"git"},"_npmVersion":"2.14.12","description":"Resolves the location of a node package given a path","directories":{"test":"test"},"_nodeVersion":"4.2.4","dependencies":{"debug":"^2.2.0","then-fs":"^2.0.0"},"devDependencies":{"tap":"^5.1.1","jscs":"^2.8.0","tape":"^4.4.0","proxyquire":"^1.7.3","es6-promise":"^3.0.2","semantic-release":"^4.3.5"}},"1.0.1":{"name":"snyk-resolve","version":"1.0.1","keywords":["snyk"],"author":{"name":"Remy Sharp"},"license":"Apache-2.0","_id":"snyk-resolve@1.0.1","maintainers":[{"name":"remy","email":"remy@leftlogic.com"},{"name":"snyk-admin","email":"admin+snyk@snyk.io"}],"homepage":"https://github.com/Snyk/resolve-package#readme","bugs":{"url":"https://github.com/Snyk/resolve-package/issues"},"dist":{"shasum":"eaa4a275cf7e2b579f18da5b188fe601b8eed9ab","tarball":"https://registry.npmjs.org/snyk-resolve/-/snyk-resolve-1.0.1.tgz","fileCount":19,"integrity":"sha512-7+i+LLhtBo1Pkth01xv+RYJU8a67zmJ8WFFPvSxyCjdlKIcsps4hPQFebhz+0gC5rMemlaeIV6cqwqUf9PEDpw==","signatures":[{"sig":"MEYCIQDVYlMr3Wk1ziFDQzqgEz3xbMZgjuH07eqvTCSLOimv3AIhALkcP7HUmrkdPlBimIMq1pTtn5C7IaBWD2uwmIMtyWHI","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":64466,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa5EqQCRA9TVsSAnZWagAAIukP/2xgLZFxKe/fEpYDU2ol\n4CN45tHVEdJE9oMNK1mzGlYHudvufP9KvSw2c/BLXUHo3Nl4nIj+hO0DPtNi\nkW2OZmW6UxpWDxqVjQCi3yTsOZbF58yY+/heuS4+mRkMdB9bdr3MTiexU1oB\nXgpshGyZ7xSDO0F2OAXeosIFnKpPp1QP5utdGgas1Xptm5o7IqLr81AjuKVI\ndjLR8m2IuZa43dh+viyg1gDUwaNrVeROfZYsitLfCr0H9R/5LJZKe8wHT7jm\nv01w8FtxXtw4uo6ublICuqAUgKh2mHbbptTh8sSzIH+cJdRYvFgQXHpxW1cn\nrI3YW9psY4sNjqwTRefzkQ3KzkSA6hiyiGpE5hyW8r09ubTSHWhKan6JMJlh\nMhyreg4ZsS88umU+ObsHxdsI5VQBd/OXOY9e3V6CtlCsR12Q/7wG5m6dJ85c\n5zfvURAj4vzy69iCFld/+CYwJs4gKkHbAP3OVKT9M5jbBNVpg6zHBt5lXeVY\n1ufwR+TYWe9A3Z81Vee6AWYWKGUrfPAAqklMZmot28RbEucZhIvl+iqlFjbJ\nmUZfuiFpmTLYIi2H0cluQoQmFTaiO55u++9+aZqzqGvN56YMB9T/VQ3KFAOf\nTC2lCWF+qUsbs2FsTtF4nNKkbOLajMgRLJT+U6dQ2fa05ejt/DBE2bP5T+OD\nSbk2\r\n=3O74\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","gitHead":"f8bf2d93be8a0b2c7a3fc31154e64b6ad62c0175","scripts":{"lint":"jscs lib/*.js -v","test":"npm run lint && tap test/*.test.js --cov --timeout=60","semantic-release":"semantic-release pre && npm publish && semantic-release post"},"_npmUser":{"name":"snyk-admin","email":"npm-admin@snyk.io"},"repository":{"url":"git+https://github.com/Snyk/resolve-package.git","type":"git"},"_npmVersion":"5.6.0","description":"Resolves the location of a node package given a path","directories":{"test":"test"},"_nodeVersion":"8.11.1","dependencies":{"debug":"^3.1.0","then-fs":"^2.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^5.1.1","jscs":"^2.8.0","tape":"^4.4.0","proxyquire":"^1.7.3","es6-promise":"^3.0.2","semantic-release":"^4.3.5"},"_npmOperationalInternal":{"tmp":"tmp/snyk-resolve_1.0.1_1524910736700_0.3580025544852161","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"snyk-resolve","version":"1.1.0","keywords":["snyk"],"author":{"name":"Remy Sharp"},"license":"Apache-2.0","_id":"snyk-resolve@1.1.0","maintainers":[{"name":"remy","email":"remy@leftlogic.com"},{"name":"snyk-admin","email":"admin+snyk@snyk.io"}],"homepage":"https://github.com/snyk/resolve-package#readme","bugs":{"url":"https://github.com/snyk/resolve-package/issues"},"dist":{"shasum":"52740cb01ba477851086855f9857b3a44296ee0e","tarball":"https://registry.npmjs.org/snyk-resolve/-/snyk-resolve-1.1.0.tgz","fileCount":21,"integrity":"sha512-OZMF8I8TOu0S58Z/OS9mr8jkEzGAPByCsAkrWlcmZgPaE0RsxVKVIFPhbMNy/JlYswgGDYYIEsNw+e0j1FnTrw==","signatures":[{"sig":"MEQCIDjRkikiCecB0P21zWkGc7Rj2Rzi9WtW95Mi68ZmmPzCAiAm2L1JZd0a2xTk07fh7eyd9t2hSURfnpKAnJqkr33LNg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":62252,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfFtwSCRA9TVsSAnZWagAArjIP/1nVMRLn6Cd98iNlFeeH\nyVcAE1+PU00rCT4xhPln0nBtKViktEhHaaRL4nBZurpbxZyfTewdZB/nGyDm\nTupW3J8HdW7iSGJWofhepZD8tFTPJ34+Zy/qC104uMdngkb3VYTSKlZihv43\nTxQfTKT870n4cV5Jmf3ct5+JTWKYQ3ALsm5HSd1LMhmNu5+BdDva5lB1Ou6+\nOrChzdlKByykDf8ddhRNfh5byg7dyG7fhxPUO+6qWuBwNEmCzi/gyM1iaA8E\nu7SYzaDUksA1h0PVX1ae1FPozBjND5fkDDwmWUYdml6ElnO9W1IPzcc1PblX\nMPtE5Y3rblzLc/UIPK/tT9nao0KbaQCM/9IQvOWJqMWmGIoO8AJNAM9rX4/R\nbyN1mipMFZEW5p0l7WKW3YTd9k3NkxwN0iBJHHVKCRRg9Y5izzO1QAmJUBfP\nSpd4vbqoCXijk1sNk7ZFLivzAQ+hOb97yoWB21/bOsfGzXpTYNetNBJw0l6Y\nDRCMYQFqBCg4/DVqsw51TTDhfEK5U0D103zbHEblTxq6/uFcL3DQpFflv3TC\nWIRcF3rj7indDeSFPCFwWhwuVQVFbses9uqGKxCTlzjFd0JmwGPxMz/VEnpV\n1yCK7ID44oyNTuotJfICIFHp40kZa5D3BGi0Xyfq+Vv9VBVLArBmctTYsyw6\nl3mT\r\n=ziPM\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","gitHead":"139c5ac8050fd7fe5fcbfd5e4b49b2962165773c","scripts":{"lint":"jscs lib/*.js -v","test":"npm run lint && tap test/*.test.js --cov --timeout=60"},"_npmUser":{"name":"snyk-admin","email":"npmjs+snyk-admin@snyk.io"},"repository":{"url":"git+https://github.com/snyk/resolve-package.git","type":"git"},"_npmVersion":"6.14.4","description":"Resolves the location of a node package given a path","directories":{"test":"test"},"_nodeVersion":"10.21.0","dependencies":{"debug":"^4.1.1","promise-fs":"^2.1.1"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^12.7.0","jscs":"^3.0.7","tape":"^4.11.0","proxyquire":"^2.1.3","es6-promise":"^4.2.8"},"_npmOperationalInternal":{"tmp":"tmp/snyk-resolve_1.1.0_1595333649800_0.7902438794472215","host":"s3://npm-registry-packages"}},"1.2.0":{"name":"snyk-resolve","description":"Resolves the location of a node package given a path","main":"lib/index.js","directories":{"test":"test"},"scripts":{"lint":"eslint lib/ test/","test":"npm run lint && jest --coverage"},"keywords":["snyk"],"author":{"name":"Remy Sharp"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1"},"devDependencies":{"@types/jest":"^29.0.0","eslint":"^10.6.0","globals":"^17.7.0","jest":"^30.4.2"},"repository":{"type":"git","url":"git+https://github.com/snyk/resolve-package.git"},"homepage":"https://github.com/snyk/resolve-package#readme","bugs":{"url":"https://github.com/snyk/resolve-package/issues"},"publishConfig":{"access":"public"},"engines":{"node":">=8"},"version":"1.2.0","gitHead":"72a02414a02f480672149da35c1233bb413ddd4f","_id":"snyk-resolve@1.2.0","_nodeVersion":"24.16.0","_npmVersion":"11.18.0","dist":{"integrity":"sha512-Cke8vOQ7PoR+Uvh0lMT9cfYsfOARVxDqxV0OtHz187v9W8obzZkRK6xs13uuuMT3qCB4gE0EZ4bc6CxrPnG5Nw==","shasum":"b85025cb23b0ed9ad9c6db01d4580fb68168729d","tarball":"https://registry.npmjs.org/snyk-resolve/-/snyk-resolve-1.2.0.tgz","fileCount":4,"unpackedSize":4115,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCBlhiux+URq8wGNFoJHw0ffKrKRrbjVZLOo8VVcO/YhgIhALHCaH/khZTpEUvzOKdCsgGNlUG5XuzniwAv/EX8ic2a"}]},"_npmUser":{"name":"CircleCI","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"circleci","oidcConfigId":"oidc:e075d2dd-6427-4a62-9037-4c8c09bcf0b4"}},"maintainers":[{"name":"remy","email":"remy@leftlogic.com"},{"name":"snyk-admin","email":"npmjs+snyk-admin@snyk.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/snyk-resolve_1.2.0_1782840786692_0.506158858276518"},"_hasShrinkwrap":false}},"time":{"created":"2016-01-22T13:46:55.776Z","modified":"2026-06-30T17:33:06.927Z","1.0.0":"2016-01-22T13:46:55.776Z","1.0.1":"2018-04-28T10:18:56.780Z","1.1.0":"2020-07-21T12:14:09.988Z","1.2.0":"2026-06-30T17:33:06.835Z"},"bugs":{"url":"https://github.com/snyk/resolve-package/issues"},"author":{"name":"Remy Sharp"},"license":"Apache-2.0","homepage":"https://github.com/snyk/resolve-package#readme","keywords":["snyk"],"repository":{"type":"git","url":"git+https://github.com/snyk/resolve-package.git"},"description":"Resolves the location of a node package given a path","maintainers":[{"name":"remy","email":"remy@leftlogic.com"},{"name":"snyk-admin","email":"npmjs+snyk-admin@snyk.io"}],"readme":"# snyk-resolve\n\nFinds the filename for a given package name and starting directory. This is used to resolve packages in situations like npm@3 and deduped packages.\n\nSupports both async (via promises) and sync methods of looking up.\n\n## Usage\n\n```js\nvar resolve = require('snyk-resolve');\n\n// async (promise based)\nresolve('foo', process.cwd()).then(function (dir) {\n  // assuming that `foo` lived in the root of your drive\n  console.assert(dir === '/node_modules/foo');\n});\n\n// sync\nvar dir = resolve.sync('bar', process.cwd());\n// throws Error('package not found bar')\n```\n\nSee tests for more examples.\n\n## Supports\n\n- npm@2 directory structure\n- npm@3 directory structure\n- deduped modules\n- scoped modules\n","readmeFilename":"README.mdown"}