{"_id":"detective-cjs","_rev":"3318851","name":"detective-cjs","description":"Get the dependencies of a CommonJS module by traversing its AST","dist-tags":{"latest":"6.0.0"},"maintainers":[{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},{"name":"pahen","email":"patrik.henningsson@gmail.com"},{"name":"xhmikosr","email":"xhmikosr@gmail.com"}],"time":{"modified":"2024-06-11T09:02:35.000Z","created":"2014-12-14T02:52:52.928Z","6.0.0":"2024-04-14T06:41:38.976Z","5.0.1":"2023-05-05T06:59:34.933Z","5.0.0":"2023-05-05T06:58:13.408Z","4.1.0":"2023-03-19T07:56:59.376Z","4.0.0":"2022-03-03T13:00:38.871Z","3.1.3":"2022-02-22T12:50:04.691Z","3.1.2":"2022-02-21T19:02:05.096Z","3.1.1":"2018-10-04T02:17:18.497Z","3.1.0":"2018-09-25T15:55:07.616Z","3.0.0":"2018-09-03T16:57:19.354Z","2.0.1":"2018-08-24T00:19:36.685Z","2.0.0":"2016-06-16T03:49:34.099Z","1.0.5":"2015-10-24T14:42:08.616Z","1.0.4":"2015-07-04T16:06:39.295Z","1.0.3":"2015-06-27T19:05:45.667Z","1.0.2":"2015-01-08T03:36:41.559Z","1.0.1":"2014-12-14T03:14:25.113Z","1.0.0":"2014-12-14T02:52:52.928Z"},"users":{"noyobo":true},"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com"},"repository":{"type":"git","url":"git+https://github.com/dependents/node-detective-cjs.git"},"versions":{"6.0.0":{"name":"detective-cjs","version":"6.0.0","description":"Get the dependencies of a CommonJS module by traversing its AST","main":"index.js","scripts":{"lint":"xo","fix":"xo --fix","mocha":"mocha","test":"npm run lint && npm run mocha","test:ci":"c8 npm run mocha"},"repository":{"type":"git","url":"git+https://github.com/dependents/node-detective-cjs.git"},"keywords":["detective","commonjs","dependencies","ast","static analysis","cjs","jsx"],"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com"},"license":"MIT","bugs":{"url":"https://github.com/dependents/node-detective-cjs/issues"},"homepage":"https://github.com/dependents/node-detective-cjs","engines":{"node":">=18"},"dependencies":{"ast-module-types":"^6.0.0","node-source-walk":"^7.0.0"},"devDependencies":{"c8":"^9.1.0","mocha":"^10.4.0","xo":"^0.58.0"},"xo":{"space":true,"ignores":["test/fixtures/*"],"rules":{"arrow-body-style":"off","capitalized-comments":"off","comma-dangle":["error","never"],"curly":["error","multi-line"],"operator-linebreak":["error","after"],"object-curly-spacing":["error","always"],"space-before-function-paren":["error","never"],"unicorn/prefer-module":"off","unicorn/prefer-node-protocol":"off","unicorn/prefer-top-level-await":"off","unicorn/prevent-abbreviations":"off"}},"_id":"detective-cjs@6.0.0","gitHead":"e9af92a00dd30233d0a5039ec9361c0d3c41e871","_nodeVersion":"20.11.1","_npmVersion":"10.2.4","dist":{"shasum":"65975719993fb4165a86e341a86784d7fcb4e3c8","size":2383,"noattachment":false,"key":"/detective-cjs/-/detective-cjs-6.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/detective-cjs/download/detective-cjs-6.0.0.tgz"},"_npmUser":{"name":"xhmikosr","email":"xhmikosr@gmail.com"},"directories":{},"maintainers":[{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},{"name":"pahen","email":"patrik.henningsson@gmail.com"},{"name":"xhmikosr","email":"xhmikosr@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/detective-cjs_6.0.0_1713076897995_0.5267384657290062"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-04-14T06:41:38.976Z","publish_time":1713076898976,"_source_registry_name":"default","_cnpm_publish_time":1713076898976},"5.0.1":{"name":"detective-cjs","version":"5.0.1","description":"Get the dependencies of a CommonJS module by traversing its AST","main":"index.js","scripts":{"lint":"xo","fix":"xo --fix","mocha":"mocha","test":"npm run lint && npm run mocha","test:ci":"c8 npm run mocha"},"repository":{"type":"git","url":"git+https://github.com/dependents/node-detective-cjs.git"},"keywords":["detective","commonjs","dependencies","ast","static analysis","cjs","jsx"],"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com"},"license":"MIT","bugs":{"url":"https://github.com/dependents/node-detective-cjs/issues"},"homepage":"https://github.com/dependents/node-detective-cjs","engines":{"node":">=14"},"dependencies":{"ast-module-types":"^5.0.0","node-source-walk":"^6.0.0"},"devDependencies":{"c8":"^7.13.0","mocha":"^10.2.0","xo":"^0.54.2"},"xo":{"space":true,"ignores":["test/fixtures/*"],"rules":{"arrow-body-style":"off","capitalized-comments":"off","comma-dangle":["error","never"],"curly":["error","multi-line"],"operator-linebreak":["error","after"],"object-curly-spacing":["error","always"],"space-before-function-paren":["error","never"],"unicorn/prefer-module":"off","unicorn/prefer-node-protocol":"off","unicorn/prefer-top-level-await":"off","unicorn/prevent-abbreviations":"off"}},"gitHead":"e57cebdcd17cdb72403471f6ff8c99a99759bf30","_id":"detective-cjs@5.0.1","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"shasum":"836ad51c6de4863efc7c419ec243694f760ff8b2","size":2360,"noattachment":false,"key":"/detective-cjs/-/detective-cjs-5.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/detective-cjs/download/detective-cjs-5.0.1.tgz"},"_npmUser":{"name":"xhmikosr","email":"xhmikosr@gmail.com"},"directories":{},"maintainers":[{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},{"name":"pahen","email":"patrik.henningsson@gmail.com"},{"name":"xhmikosr","email":"xhmikosr@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/detective-cjs_5.0.1_1683269974723_0.48056842912910636"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-05-05T06:59:34.933Z","publish_time":1683269974933,"_source_registry_name":"default","_cnpm_publish_time":1683269974933},"5.0.0":{"name":"detective-cjs","version":"5.0.0","description":"Get the dependencies of a CommonJS module by traversing its AST","main":"index.js","scripts":{"lint":"xo","fix":"xo --fix","mocha":"mocha","test":"npm run lint && npm run mocha","test:ci":"c8 npm run mocha"},"repository":{"type":"git","url":"git+https://github.com/dependents/node-detective-cjs.git"},"keywords":["detective","commonjs","dependencies","ast","static analysis","cjs","jsx"],"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com"},"license":"MIT","bugs":{"url":"https://github.com/dependents/node-detective-cjs/issues"},"homepage":"https://github.com/dependents/node-detective-cjs","engines":{"node":">=14"},"dependencies":{"ast-module-types":"^4.0.0","node-source-walk":"^5.0.1"},"devDependencies":{"c8":"^7.13.0","mocha":"^9.2.2","xo":"^0.54.2"},"xo":{"space":true,"ignores":["test/fixtures/*"],"rules":{"arrow-body-style":"off","capitalized-comments":"off","comma-dangle":["error","never"],"curly":["error","multi-line"],"operator-linebreak":["error","after"],"object-curly-spacing":["error","always"],"space-before-function-paren":["error","never"],"unicorn/prefer-module":"off","unicorn/prefer-node-protocol":"off","unicorn/prefer-top-level-await":"off","unicorn/prevent-abbreviations":"off"}},"gitHead":"b70e7d46f595fbc6820219db5c026b83ae9f14c6","_id":"detective-cjs@5.0.0","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"shasum":"7b7ae0290e90f4233fe92fb709da726dabb414d2","size":2361,"noattachment":false,"key":"/detective-cjs/-/detective-cjs-5.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/detective-cjs/download/detective-cjs-5.0.0.tgz"},"_npmUser":{"name":"xhmikosr","email":"xhmikosr@gmail.com"},"directories":{},"maintainers":[{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},{"name":"pahen","email":"patrik.henningsson@gmail.com"},{"name":"xhmikosr","email":"xhmikosr@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/detective-cjs_5.0.0_1683269893227_0.15647745091929788"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-05-05T06:58:13.408Z","publish_time":1683269893408,"_source_registry_name":"default","_cnpm_publish_time":1683269893408},"4.1.0":{"name":"detective-cjs","version":"4.1.0","description":"Get the dependencies of a CommonJS module by traversing its AST","main":"index.js","scripts":{"lint":"eslint index.js \"test/*.js\"","fix":"npm run lint -- --fix","mocha":"mocha","test":"npm run lint && npm run mocha","test:ci":"c8 npm run mocha"},"repository":{"type":"git","url":"git+https://github.com/dependents/node-detective-cjs.git"},"keywords":["detective","commonjs","dependencies","ast","static analysis","cjs","jsx"],"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com"},"license":"MIT","bugs":{"url":"https://github.com/dependents/node-detective-cjs/issues"},"homepage":"https://github.com/dependents/node-detective-cjs","engines":{"node":">=12"},"dependencies":{"ast-module-types":"^4.0.0","node-source-walk":"^5.0.1"},"devDependencies":{"c8":"^7.13.0","eslint":"^8.36.0","mocha":"^9.2.2"},"gitHead":"4b2e393f42dc2d83d6869aac64e1c86cad62c42f","_id":"detective-cjs@4.1.0","_nodeVersion":"18.15.0","_npmVersion":"9.5.0","dist":{"shasum":"56b1558ca0910933c7fc47c740b957f0280ff302","size":2135,"noattachment":false,"key":"/detective-cjs/-/detective-cjs-4.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/detective-cjs/download/detective-cjs-4.1.0.tgz"},"_npmUser":{"name":"xhmikosr","email":"xhmikosr@gmail.com"},"directories":{},"maintainers":[{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},{"name":"pahen","email":"patrik.henningsson@gmail.com"},{"name":"xhmikosr","email":"xhmikosr@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/detective-cjs_4.1.0_1679212619226_0.14780888921860313"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-03-19T07:56:59.376Z","publish_time":1679212619376,"_cnpm_publish_time":1679212619376},"4.0.0":{"name":"detective-cjs","version":"4.0.0","description":"Get the dependencies of a CommonJS module by traversing its AST","main":"index.js","scripts":{"lint":"eslint index.js \"test/*.js\"","mocha":"mocha","test":"npm run lint && npm run mocha","test:ci":"c8 npm run mocha"},"repository":{"type":"git","url":"git+https://github.com/dependents/node-detective-cjs.git"},"keywords":["detective","commonjs","dependencies","ast","static analysis","cjs","jsx"],"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com"},"license":"MIT","bugs":{"url":"https://github.com/dependents/node-detective-cjs/issues"},"homepage":"https://github.com/dependents/node-detective-cjs","engines":{"node":">=12"},"dependencies":{"ast-module-types":"^3.0.0","node-source-walk":"^5.0.0"},"devDependencies":{"c8":"^7.11.0","eslint":"^8.10.0","mocha":"^9.2.1"},"gitHead":"8b67a779e2ed41d07cbafa0d2ccc105f9dc19a59","_id":"detective-cjs@4.0.0","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"shasum":"316e2c7ae14276a5dcfe0c43dc05d8cf9a0e5cf9","size":2115,"noattachment":false,"key":"/detective-cjs/-/detective-cjs-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/detective-cjs/download/detective-cjs-4.0.0.tgz"},"_npmUser":{"name":"xhmikosr","email":"xhmikosr@gmail.com"},"directories":{},"maintainers":[{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},{"name":"pahen","email":"patrik.henningsson@gmail.com"},{"name":"xhmikosr","email":"xhmikosr@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/detective-cjs_4.0.0_1646312438719_0.3502844499732485"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-03-03T13:00:42.869Z","publish_time":1646312438871,"_cnpm_publish_time":1646312438871},"3.1.3":{"name":"detective-cjs","version":"3.1.3","description":"Get the dependencies of a CommonJS module by traversing its AST","main":"index.js","scripts":{"lint":"eslint index.js \"test/*.js\"","mocha":"mocha","test":"npm run lint && npm run mocha"},"repository":{"type":"git","url":"git+https://github.com/dependents/node-detective-cjs.git"},"keywords":["detective","commonjs","dependencies","ast","static analysis","cjs","jsx"],"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com"},"license":"MIT","bugs":{"url":"https://github.com/dependents/node-detective-cjs/issues"},"homepage":"https://github.com/dependents/node-detective-cjs","engines":{"node":">=6.0"},"dependencies":{"ast-module-types":"^3.0.0","node-source-walk":"^4.0.0"},"devDependencies":{"eslint":"^5.16.0","mocha":"^6.2.3"},"gitHead":"d803e2f1010059e7f91c910d5de0fb92865efd5d","_id":"detective-cjs@3.1.3","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"shasum":"50e107d67b37f459b0ec02966ceb7e20a73f268b","size":2049,"noattachment":false,"key":"/detective-cjs/-/detective-cjs-3.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/detective-cjs/download/detective-cjs-3.1.3.tgz"},"_npmUser":{"name":"xhmikosr","email":"xhmikosr@gmail.com"},"directories":{},"maintainers":[{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},{"name":"pahen","email":"patrik.henningsson@gmail.com"},{"name":"xhmikosr","email":"xhmikosr@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/detective-cjs_3.1.3_1645534204532_0.0181498808598608"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-02-22T12:50:11.455Z","publish_time":1645534204691,"_cnpm_publish_time":1645534204691},"3.1.2":{"name":"detective-cjs","version":"3.1.2","description":"Get the dependencies of a CommonJS module by traversing its AST","main":"index.js","scripts":{"lint":"eslint index.js \"test/*.js\"","mocha":"mocha","test":"npm run lint && npm run mocha"},"repository":{"type":"git","url":"git+https://github.com/dependents/node-detective-cjs.git"},"keywords":["detective","commonjs","dependencies","ast","static analysis","cjs","jsx"],"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com"},"license":"MIT","bugs":{"url":"https://github.com/dependents/node-detective-cjs/issues"},"homepage":"https://github.com/dependents/node-detective-cjs","engines":{"node":">=6.0"},"dependencies":{"ast-module-types":"^2.4.0","node-source-walk":"^4.0.0"},"devDependencies":{"eslint":"^5.16.0","mocha":"^6.2.3"},"gitHead":"a5973270b3934dba1f7ec4c816a68216036edda7","_id":"detective-cjs@3.1.2","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"shasum":"b6b7ce647946cdefe136a0fff6973ead2f0f5d0d","size":2053,"noattachment":false,"key":"/detective-cjs/-/detective-cjs-3.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/detective-cjs/download/detective-cjs-3.1.2.tgz"},"_npmUser":{"name":"xhmikosr","email":"xhmikosr@gmail.com"},"directories":{},"maintainers":[{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},{"name":"pahen","email":"patrik.henningsson@gmail.com"},{"name":"xhmikosr","email":"xhmikosr@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/detective-cjs_3.1.2_1645470124838_0.3397791049722607"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-02-21T19:02:52.329Z","publish_time":1645470125096,"_cnpm_publish_time":1645470125096},"3.1.1":{"name":"detective-cjs","version":"3.1.1","description":"Get the dependencies of a CommonJS module by traversing its AST","main":"index.js","scripts":{"test":"jscs index.js test && mocha test/test.js"},"repository":{"type":"git","url":"git+https://github.com/mrjoelkemp/node-detective-cjs.git"},"keywords":["detective","commonjs","dependencies","ast","static analysis","cjs","jsx"],"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com"},"license":"MIT","bugs":{"url":"https://github.com/mrjoelkemp/node-detective-cjs/issues"},"homepage":"https://github.com/mrjoelkemp/node-detective-cjs","engines":{"node":">= 6.0"},"devDependencies":{"jscs":"^3.0.7","jscs-preset-mrjoelkemp":"~2.0.0","mocha":"^5.2.0","sinon":"^6.1.5"},"dependencies":{"ast-module-types":"^2.4.0","node-source-walk":"^4.0.0"},"gitHead":"69e754e4f5397c0c467dc96ae91c16e1bba6b2bf","_id":"detective-cjs@3.1.1","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},"dist":{"shasum":"18da3e39a002d2098a1123d45ce1de1b0d9045a0","size":1363,"noattachment":false,"key":"/detective-cjs/-/detective-cjs-3.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/detective-cjs/download/detective-cjs-3.1.1.tgz"},"maintainers":[{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},{"name":"pahen","email":"patrik.henningsson@gmail.com"},{"name":"xhmikosr","email":"xhmikosr@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/detective-cjs_3.1.1_1538619438286_0.9769957622360526"},"_hasShrinkwrap":false,"publish_time":1538619438497,"_cnpm_publish_time":1538619438497},"3.1.0":{"name":"detective-cjs","version":"3.1.0","description":"Get the dependencies of a CommonJS module by traversing its AST","main":"index.js","scripts":{"test":"jscs index.js test && mocha test/test.js"},"repository":{"type":"git","url":"git+https://github.com/mrjoelkemp/node-detective-cjs.git"},"keywords":["detective","commonjs","dependencies","ast","static analysis","cjs","jsx"],"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com"},"license":"MIT","bugs":{"url":"https://github.com/mrjoelkemp/node-detective-cjs/issues"},"homepage":"https://github.com/mrjoelkemp/node-detective-cjs","engines":{"node":">= 6.0"},"devDependencies":{"jscs":"^3.0.7","jscs-preset-mrjoelkemp":"~2.0.0","mocha":"^5.2.0","sinon":"^6.1.5"},"dependencies":{"ast-module-types":"^2.4.0","node-source-walk":"^4.0.0"},"gitHead":"ecbbac6718887cb0c1a998f3d49b46500958fe30","_id":"detective-cjs@3.1.0","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},"dist":{"shasum":"493c1be2c74af1566f5c0902d5ba4c4a2fee1d3c","size":1340,"noattachment":false,"key":"/detective-cjs/-/detective-cjs-3.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/detective-cjs/download/detective-cjs-3.1.0.tgz"},"maintainers":[{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},{"name":"pahen","email":"patrik.henningsson@gmail.com"},{"name":"xhmikosr","email":"xhmikosr@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/detective-cjs_3.1.0_1537890907445_0.26029081076631555"},"_hasShrinkwrap":false,"publish_time":1537890907616,"_cnpm_publish_time":1537890907616},"3.0.0":{"name":"detective-cjs","version":"3.0.0","description":"Get the dependencies of a CommonJS module by traversing its AST","main":"index.js","scripts":{"test":"jscs index.js test && mocha test/test.js"},"repository":{"type":"git","url":"git+https://github.com/mrjoelkemp/node-detective-cjs.git"},"keywords":["detective","commonjs","dependencies","ast","static analysis","cjs","jsx"],"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com"},"license":"MIT","bugs":{"url":"https://github.com/mrjoelkemp/node-detective-cjs/issues"},"homepage":"https://github.com/mrjoelkemp/node-detective-cjs","engines":{"node":">= 6.0"},"devDependencies":{"jscs":"~2.4.0","jscs-preset-mrjoelkemp":"~1.0.0","mocha":"^5.2.0","sinon":"^6.1.5"},"dependencies":{"ast-module-types":"^2.3.2","node-source-walk":"^4.0.0"},"gitHead":"8b9fe3eef057da684c817079a4aeedf6d7a8d6c5","_id":"detective-cjs@3.0.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.3","_npmUser":{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},"dist":{"shasum":"14200b5ed2bc6421d4f2e92b129d39db40fa2d74","size":1296,"noattachment":false,"key":"/detective-cjs/-/detective-cjs-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/detective-cjs/download/detective-cjs-3.0.0.tgz"},"maintainers":[{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},{"name":"pahen","email":"patrik.henningsson@gmail.com"},{"name":"xhmikosr","email":"xhmikosr@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/detective-cjs_3.0.0_1535993839178_0.0197366041742415"},"_hasShrinkwrap":false,"publish_time":1535993839354,"_cnpm_publish_time":1535993839354},"2.0.1":{"name":"detective-cjs","version":"2.0.1","description":"Get the dependencies of a CommonJS module by traversing its AST","main":"index.js","scripts":{"test":"jscs index.js test && mocha test/test.js"},"repository":{"type":"git","url":"git+https://github.com/mrjoelkemp/node-detective-cjs.git"},"keywords":["detective","commonjs","dependencies","ast","static analysis","cjs","jsx"],"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com"},"license":"MIT","bugs":{"url":"https://github.com/mrjoelkemp/node-detective-cjs/issues"},"homepage":"https://github.com/mrjoelkemp/node-detective-cjs","devDependencies":{"jscs":"~2.4.0","jscs-preset-mrjoelkemp":"~1.0.0","mocha":"~2.0.1","sinon":"~1.12.2"},"dependencies":{"ast-module-types":"^2.3.2","node-source-walk":"^3.0.0"},"gitHead":"f020fb473122359bbd7f8754c29880ed9d2b237e","_id":"detective-cjs@2.0.1","_npmVersion":"5.5.1","_nodeVersion":"8.9.3","_npmUser":{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},"dist":{"shasum":"d721b83a61a37048aa1b72328b409dbf7a55431e","size":1265,"noattachment":false,"key":"/detective-cjs/-/detective-cjs-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/detective-cjs/download/detective-cjs-2.0.1.tgz"},"maintainers":[{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},{"name":"pahen","email":"patrik.henningsson@gmail.com"},{"name":"xhmikosr","email":"xhmikosr@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/detective-cjs_2.0.1_1535069976620_0.13701800886343207"},"_hasShrinkwrap":false,"publish_time":1535069976685,"_cnpm_publish_time":1535069976685},"2.0.0":{"name":"detective-cjs","version":"2.0.0","description":"Get the dependencies of a CommonJS module by traversing its AST","main":"index.js","scripts":{"test":"jscs index.js test && mocha test/test.js"},"repository":{"type":"git","url":"git+https://github.com/mrjoelkemp/node-detective-cjs.git"},"keywords":["detective","commonjs","dependencies","ast","static analysis","cjs","jsx"],"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com"},"license":"MIT","bugs":{"url":"https://github.com/mrjoelkemp/node-detective-cjs/issues"},"homepage":"https://github.com/mrjoelkemp/node-detective-cjs","devDependencies":{"jscs":"~2.4.0","jscs-preset-mrjoelkemp":"~1.0.0","mocha":"~2.0.1","sinon":"~1.12.2"},"dependencies":{"ast-module-types":"^2.3.2","node-source-walk":"^3.0.0"},"gitHead":"4e31629f92bafa3df9be09f5ddb3bae1474156fa","_id":"detective-cjs@2.0.0","_shasum":"dce4c9302cdca52e6b8bfd3877ca93f62c5ccc03","_from":".","_npmVersion":"3.8.0","_nodeVersion":"0.12.6","_npmUser":{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},"maintainers":[{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},{"name":"pahen","email":"patrik.henningsson@gmail.com"},{"name":"xhmikosr","email":"xhmikosr@gmail.com"}],"dist":{"shasum":"dce4c9302cdca52e6b8bfd3877ca93f62c5ccc03","size":1293,"noattachment":false,"key":"/detective-cjs/-/detective-cjs-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/detective-cjs/download/detective-cjs-2.0.0.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/detective-cjs-2.0.0.tgz_1466048973178_0.2885229978710413"},"directories":{},"publish_time":1466048974099,"_cnpm_publish_time":1466048974099,"_hasShrinkwrap":false},"1.0.5":{"name":"detective-cjs","version":"1.0.5","description":"Get the dependencies of a CommonJS module by traversing its AST","main":"index.js","scripts":{"test":"jscs -p google index.js test && mocha test/test.js"},"repository":{"type":"git","url":"git+https://github.com/mrjoelkemp/node-detective-cjs.git"},"keywords":["detective","commonjs","dependencies","ast","static analysis","cjs","jsx"],"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com"},"license":"MIT","bugs":{"url":"https://github.com/mrjoelkemp/node-detective-cjs/issues"},"homepage":"https://github.com/mrjoelkemp/node-detective-cjs","devDependencies":{"jscs":"~2.4.0","mocha":"~2.0.1","sinon":"~1.12.2"},"dependencies":{"ast-module-types":"^2.2.1","escodegen":"^1.5.0","node-source-walk":"^2.0.0"},"gitHead":"6428a52f032706c60b0d1b05a23984d93c88a8ef","_id":"detective-cjs@1.0.5","_shasum":"c94e9d11c4d19c8d5e47f0ec5445e41b8962a8d5","_from":".","_npmVersion":"2.11.2","_nodeVersion":"0.12.6","_npmUser":{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},"maintainers":[{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},{"name":"pahen","email":"patrik.henningsson@gmail.com"},{"name":"xhmikosr","email":"xhmikosr@gmail.com"}],"dist":{"shasum":"c94e9d11c4d19c8d5e47f0ec5445e41b8962a8d5","size":1909,"noattachment":false,"key":"/detective-cjs/-/detective-cjs-1.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/detective-cjs/download/detective-cjs-1.0.5.tgz"},"directories":{},"publish_time":1445697728616,"_cnpm_publish_time":1445697728616,"_hasShrinkwrap":false},"1.0.4":{"name":"detective-cjs","version":"1.0.4","description":"Get the dependencies of a CommonJS module by traversing its AST","main":"index.js","scripts":{"test":"mocha test/test.js"},"repository":{"type":"git","url":"https://github.com/mrjoelkemp/node-detective-cjs.git"},"keywords":["detective","commonjs","dependencies","ast","static analysis"],"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com"},"license":"MIT","bugs":{"url":"https://github.com/mrjoelkemp/node-detective-cjs/issues"},"homepage":"https://github.com/mrjoelkemp/node-detective-cjs","devDependencies":{"mocha":"~2.0.1","sinon":"~1.12.2"},"dependencies":{"ast-module-types":"^2.2.1","escodegen":"^1.5.0","node-source-walk":"^2.0.0"},"gitHead":"5ebc361207dbfbce400bee9dc06cd4b13b916164","_id":"detective-cjs@1.0.4","_shasum":"c514efc003d866f13a02567b9378f4d80c31db3f","_from":".","_npmVersion":"2.7.1","_nodeVersion":"1.6.2","_npmUser":{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},"maintainers":[{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},{"name":"pahen","email":"patrik.henningsson@gmail.com"},{"name":"xhmikosr","email":"xhmikosr@gmail.com"}],"dist":{"shasum":"c514efc003d866f13a02567b9378f4d80c31db3f","size":1762,"noattachment":false,"key":"/detective-cjs/-/detective-cjs-1.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/detective-cjs/download/detective-cjs-1.0.4.tgz"},"directories":{},"publish_time":1436025999295,"_cnpm_publish_time":1436025999295,"_hasShrinkwrap":false},"1.0.3":{"name":"detective-cjs","version":"1.0.3","description":"Get the dependencies of a CommonJS module by traversing its AST","main":"index.js","scripts":{"test":"mocha test/test.js"},"repository":{"type":"git","url":"https://github.com/mrjoelkemp/node-detective-cjs.git"},"keywords":["detective","commonjs","dependencies","ast","static analysis"],"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com"},"license":"MIT","bugs":{"url":"https://github.com/mrjoelkemp/node-detective-cjs/issues"},"homepage":"https://github.com/mrjoelkemp/node-detective-cjs","devDependencies":{"mocha":"~2.0.1","sinon":"~1.12.2"},"dependencies":{"ast-module-types":"~2.2.1","escodegen":"~1.5.0","node-source-walk":"~2.0.0"},"gitHead":"6ca188ac56c6936e30f7ee0a36ad411dc6b0eade","_id":"detective-cjs@1.0.3","_shasum":"d95acebbbf88c7b2694fe69739b58d8b692ba63f","_from":".","_npmVersion":"2.7.1","_nodeVersion":"1.6.2","_npmUser":{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},"maintainers":[{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},{"name":"pahen","email":"patrik.henningsson@gmail.com"},{"name":"xhmikosr","email":"xhmikosr@gmail.com"}],"dist":{"shasum":"d95acebbbf88c7b2694fe69739b58d8b692ba63f","size":1754,"noattachment":false,"key":"/detective-cjs/-/detective-cjs-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/detective-cjs/download/detective-cjs-1.0.3.tgz"},"directories":{},"publish_time":1435431945667,"_cnpm_publish_time":1435431945667,"_hasShrinkwrap":false},"1.0.2":{"name":"detective-cjs","version":"1.0.2","description":"Get the dependencies of a CommonJS module by traversing its AST","main":"index.js","scripts":{"test":"mocha test/test.js"},"repository":{"type":"git","url":"https://github.com/mrjoelkemp/node-detective-cjs.git"},"keywords":["detective","commonjs","dependencies","ast"],"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com"},"license":"MIT","bugs":{"url":"https://github.com/mrjoelkemp/node-detective-cjs/issues"},"homepage":"https://github.com/mrjoelkemp/node-detective-cjs","devDependencies":{"mocha":"~2.0.1","sinon":"~1.12.2"},"dependencies":{"ast-module-types":"~2.2.1","escodegen":"~1.5.0","node-source-walk":"~1.4.0"},"gitHead":"8888084879fee9a9184e5f78f089cc4aa212b80f","_id":"detective-cjs@1.0.2","_shasum":"ea48dd7cc8f2b0c4f27caed8f95dc408a6e27ff8","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},"maintainers":[{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},{"name":"pahen","email":"patrik.henningsson@gmail.com"},{"name":"xhmikosr","email":"xhmikosr@gmail.com"}],"dist":{"shasum":"ea48dd7cc8f2b0c4f27caed8f95dc408a6e27ff8","size":1710,"noattachment":false,"key":"/detective-cjs/-/detective-cjs-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/detective-cjs/download/detective-cjs-1.0.2.tgz"},"directories":{},"publish_time":1420688201559,"_cnpm_publish_time":1420688201559,"_hasShrinkwrap":false},"1.0.1":{"name":"detective-cjs","version":"1.0.1","description":"Get the dependencies of a CommonJS module by traversing its AST","main":"index.js","scripts":{"test":"mocha test/test.js"},"repository":{"type":"git","url":"https://github.com/mrjoelkemp/node-detective-cjs.git"},"keywords":["detective","commonjs","dependencies","ast"],"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com"},"license":"MIT","bugs":{"url":"https://github.com/mrjoelkemp/node-detective-cjs/issues"},"homepage":"https://github.com/mrjoelkemp/node-detective-cjs","devDependencies":{"mocha":"~2.0.1"},"dependencies":{"ast-module-types":"~2.2.1","node-source-walk":"~1.4.0"},"gitHead":"997d7c8ff8086d5a00bb809dbf5d642df49ecac6","_id":"detective-cjs@1.0.1","_shasum":"bd3e05f5c3d9cf9f0c0005e510b39d1f77108a9e","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},"maintainers":[{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},{"name":"pahen","email":"patrik.henningsson@gmail.com"},{"name":"xhmikosr","email":"xhmikosr@gmail.com"}],"dist":{"shasum":"bd3e05f5c3d9cf9f0c0005e510b39d1f77108a9e","size":1610,"noattachment":false,"key":"/detective-cjs/-/detective-cjs-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/detective-cjs/download/detective-cjs-1.0.1.tgz"},"directories":{},"publish_time":1418526865113,"_cnpm_publish_time":1418526865113,"_hasShrinkwrap":false},"1.0.0":{"name":"detective-cjs","version":"1.0.0","description":"Get the dependencies of a CommonJS module by traversing its AST","main":"index.js","scripts":{"test":"mocha test/test.js"},"repository":{"type":"git","url":"https://github.com/mrjoelkemp/node-detective-cjs.git"},"keywords":["detective","commonjs","dependencies","ast"],"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com"},"license":"MIT","bugs":{"url":"https://github.com/mrjoelkemp/node-detective-cjs/issues"},"homepage":"https://github.com/mrjoelkemp/node-detective-cjs","_id":"detective-cjs@1.0.0","_shasum":"570a57d63cc6feb8e2b7cdff4a41c55b276f80b7","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},"maintainers":[{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},{"name":"pahen","email":"patrik.henningsson@gmail.com"},{"name":"xhmikosr","email":"xhmikosr@gmail.com"}],"dist":{"shasum":"570a57d63cc6feb8e2b7cdff4a41c55b276f80b7","size":503,"noattachment":false,"key":"/detective-cjs/-/detective-cjs-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/detective-cjs/download/detective-cjs-1.0.0.tgz"},"directories":{},"publish_time":1418525572928,"_cnpm_publish_time":1418525572928,"_hasShrinkwrap":false}},"readme":"# detective-cjs\n\n[![CI](https://img.shields.io/github/actions/workflow/status/dependents/node-detective-cjs/ci.yml?branch=main&label=CI&logo=github)](https://github.com/dependents/node-detective-cjs/actions/workflows/ci.yml?query=branch%3Amain)\n[![npm version](https://img.shields.io/npm/v/detective-cjs?logo=npm&logoColor=fff)](https://www.npmjs.com/package/detective-cjs)\n[![npm downloads](https://img.shields.io/npm/dm/detective-cjs)](https://www.npmjs.com/package/detective-cjs)\n\n> Get the dependencies of a CommonJS module by traversing its AST\n\n```sh\nnpm install detective-cjs\n```\n\nBut dude, substack already built this: node-detective. Yes, but I needed the capability to reuse an AST\nand this was unlikely to be merged timely. I can also support jsx and other syntactic constructs faster.\n\n## Usage\n\n```js\nconst fs = require('fs');\nconst detective = require('detective-cjs');\n\nconst mySourceCode = fs.readFileSync('myfile.js', 'utf8');\n\n// Pass in a file's content or an AST\nconst dependencies = detective(mySourceCode);\n\n// Use skipLazyLoaded to only include top-level requires,\n// treating inline (lazy-loaded) requires as intentional and legal\nconst topLevelOnly = detective(mySourceCode, { skipLazyLoaded: true });\n```\n\n* Supports JSX, ES7, and any other features that [node-source-walk](https://github.com/dependents/node-source-walk) supports.\n\n## License\n\n[MIT](LICENSE)\n","_attachments":{},"homepage":"https://github.com/dependents/node-detective-cjs","bugs":{"url":"https://github.com/dependents/node-detective-cjs/issues"},"license":"MIT"}