{"_id":"resolve-files","_rev":"1213443","name":"resolve-files","description":"Get all files from the given entry that resolved by `require`","dist-tags":{"latest":"1.0.2"},"maintainers":[{"name":"popomore","email":""}],"time":{"modified":"2021-10-13T05:46:46.000Z","created":"2017-03-07T15:16:23.894Z","1.0.2":"2017-05-03T12:04:11.118Z","1.0.1":"2017-03-23T16:11:07.594Z","1.0.0":"2017-03-07T15:16:23.894Z"},"users":{},"author":{"name":"popomore","email":"sakura9515@gmail.com"},"repository":{"type":"git","url":"git+ssh://git@github.com/popomore/resolve-files.git"},"versions":{"1.0.2":{"name":"resolve-files","version":"1.0.2","description":"Get all files from the given entry that resolved by `require`","dependencies":{"crequire":"^1.8.0","debug":"^2.6.3"},"devDependencies":{"autod":"^2.8.0","egg-bin":"^1.10.3","egg-ci":"^1.6.0","eslint":"^3.18.0","eslint-config-egg":"^3.2.0"},"engines":{"node":">=4.0.0"},"scripts":{"autod":"autod","lint":"eslint .","test":"npm run lint -- --fix && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","ci":"npm run lint && npm run cov"},"ci":{"version":"4, 6, 7","license":{"year":"2017","fullname":"popomore"}},"repository":{"type":"git","url":"git+ssh://git@github.com/popomore/resolve-files.git"},"author":{"name":"popomore","email":"sakura9515@gmail.com"},"license":"MIT","files":["index.js"],"gitHead":"850d70cd8d75213d636591f9e5850b091ded6b30","bugs":{"url":"https://github.com/popomore/resolve-files/issues"},"homepage":"https://github.com/popomore/resolve-files#readme","_id":"resolve-files@1.0.2","_shasum":"5a72118b92fa7394ff2d8605d1fc373e9c3e90ef","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.2","_npmUser":{"name":"popomore","email":"sakura9515@gmail.com"},"dist":{"shasum":"5a72118b92fa7394ff2d8605d1fc373e9c3e90ef","size":2636,"noattachment":false,"key":"/resolve-files/-/resolve-files-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/resolve-files/download/resolve-files-1.0.2.tgz"},"maintainers":[{"name":"popomore","email":""}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/resolve-files-1.0.2.tgz_1493813049150_0.12728178990073502"},"directories":{},"publish_time":1493813051118,"_cnpm_publish_time":1493813051118,"_hasShrinkwrap":false},"1.0.1":{"name":"resolve-files","version":"1.0.1","description":"Get all files from the given entry that resolved by `require`","dependencies":{"crequire":"^1.8.0","debug":"^2.6.3"},"devDependencies":{"autod":"^2.8.0","egg-bin":"^1.10.3","egg-ci":"^1.6.0","eslint":"^3.18.0","eslint-config-egg":"^3.2.0"},"engines":{"node":">=4.0.0"},"scripts":{"autod":"autod","lint":"eslint .","test":"npm run lint -- --fix && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","ci":"npm run lint && npm run cov"},"ci":{"version":"4, 6, 7","license":{"year":"2017","fullname":"popomore"}},"repository":{"type":"git","url":"git+ssh://git@github.com/popomore/resolve-files.git"},"author":{"name":"popomore","email":"sakura9515@gmail.com"},"license":"MIT","files":["index.js"],"gitHead":"68acdc317f506e6128f22c4f37639aa495b9f354","bugs":{"url":"https://github.com/popomore/resolve-files/issues"},"homepage":"https://github.com/popomore/resolve-files#readme","_id":"resolve-files@1.0.1","_shasum":"ebd6c75c1228c96341570d48ecccd824ae6e69b4","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.0","_npmUser":{"name":"popomore","email":"sakura9515@gmail.com"},"dist":{"shasum":"ebd6c75c1228c96341570d48ecccd824ae6e69b4","size":2584,"noattachment":false,"key":"/resolve-files/-/resolve-files-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/resolve-files/download/resolve-files-1.0.1.tgz"},"maintainers":[{"name":"popomore","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/resolve-files-1.0.1.tgz_1490285467367_0.4079373988788575"},"directories":{},"publish_time":1490285467594,"_cnpm_publish_time":1490285467594,"_hasShrinkwrap":false},"1.0.0":{"name":"resolve-files","version":"1.0.0","description":"Get all files from the given entry that resolved by `require`","dependencies":{},"devDependencies":{"autod":"^2.7.1","egg-bin":"^2.2.3","egg-ci":"^1.3.0","eslint":"^3.16.1","eslint-config-egg":"^3.2.0"},"engines":{"node":">=4.0.0"},"scripts":{"autod":"autod","lint":"eslint .","test":"npm run lint -- --fix && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","ci":"npm run lint && npm run cov"},"ci":{"version":"4, 6, 7","license":{"year":"2017","fullname":"popomore"}},"repository":{"type":"git","url":"git+ssh://git@github.com/popomore/resolve-files.git"},"author":{"name":"popomore","email":"sakura9515@gmail.com"},"license":"MIT","files":["index.js"],"gitHead":"8f3c84a4e761a209dd5f0e61fb7ead56fc63cf91","bugs":{"url":"https://github.com/popomore/resolve-files/issues"},"homepage":"https://github.com/popomore/resolve-files#readme","_id":"resolve-files@1.0.0","_shasum":"152125f30658c58e60a7dd8238bb875d92f8bc6d","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.0","_npmUser":{"name":"popomore","email":"sakura9515@gmail.com"},"dist":{"shasum":"152125f30658c58e60a7dd8238bb875d92f8bc6d","size":2545,"noattachment":false,"key":"/resolve-files/-/resolve-files-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/resolve-files/download/resolve-files-1.0.0.tgz"},"maintainers":[{"name":"popomore","email":""}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/resolve-files-1.0.0.tgz_1488899781953_0.39886088529601693"},"directories":{},"publish_time":1488899783894,"_cnpm_publish_time":1488899783894,"_hasShrinkwrap":false}},"readme":"# resolve-files\n\n[![NPM version][npm-image]][npm-url]\n[![build status][travis-image]][travis-url]\n[![Test coverage][codecov-image]][codecov-url]\n[![David deps][david-image]][david-url]\n[![Known Vulnerabilities][snyk-image]][snyk-url]\n[![npm download][download-image]][download-url]\n\n[npm-image]: https://img.shields.io/npm/v/resolve-files.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/resolve-files\n[travis-image]: https://img.shields.io/travis/popomore/resolve-files.svg?style=flat-square\n[travis-url]: https://travis-ci.org/popomore/resolve-files\n[codecov-image]: https://codecov.io/gh/popomore/resolve-files/branch/master/graph/badge.svg\n[codecov-url]: https://codecov.io/gh/popomore/resolve-files\n[david-image]: https://img.shields.io/david/popomore/resolve-files.svg?style=flat-square\n[david-url]: https://david-dm.org/popomore/resolve-files\n[snyk-image]: https://snyk.io/test/npm/resolve-files/badge.svg?style=flat-square\n[snyk-url]: https://snyk.io/test/npm/resolve-files\n[download-image]: https://img.shields.io/npm/dm/resolve-files.svg?style=flat-square\n[download-url]: https://npmjs.org/package/resolve-files\n\nGet all files from the given entry that resolved by `require`\n\n## Usage\n\nThere are files in npm packages\n\n```\n|- package.json\n|- index.js\n`- lib\n  `- index.js\n```\n\nAnd `index.js` requires `lib/index.js`, you can use `resolve-files` to get all files.\n\n```js\nconst resolve = require('resolve-files');\nconst result = resolve({ cwd: process.cwd() });\n// =>\n// [\n//   '$BASEDIR/index.js',\n//   '$BASEDIR/lib/index.js',\n// ]\n```\n\nIt will resolve the entry\n\nNormally, the result will include npm modules, but you can give an options `ignoreModules: true` to ignore modules (only return relative files).\n\n## License\n\n[MIT](LICENSE)\n","_attachments":{},"homepage":"https://github.com/popomore/resolve-files#readme","bugs":{"url":"https://github.com/popomore/resolve-files/issues"},"license":"MIT"}