{"_id":"ast-module-types","_rev":"3319559","name":"ast-module-types","description":"Collection of useful helper functions when trying to determine module type (CommonJS or AMD) properties of an AST node.","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:06:40.000Z","created":"2014-03-28T18:16:45.069Z","6.0.0":"2024-04-09T05:50:03.436Z","5.0.0":"2023-05-04T18:54:41.211Z","4.0.0":"2023-03-19T07:39:49.240Z","3.0.0":"2022-02-22T11:16:48.362Z","2.7.1":"2020-11-01T15:47:40.951Z","2.7.0":"2020-10-26T00:28:53.725Z","2.6.0":"2019-11-23T20:21:59.918Z","2.5.0":"2019-02-04T13:34:40.486Z","2.4.0":"2018-09-25T15:10:40.862Z","2.3.2":"2016-06-16T03:18:47.408Z","2.3.1":"2016-06-16T01:59:23.244Z","2.3.0":"2015-07-04T14:30:26.302Z","2.2.2":"2015-01-20T03:12:12.269Z","2.2.1":"2014-11-12T17:44:55.377Z","2.2.0":"2014-11-12T16:53:34.058Z","2.1.0":"2014-10-28T04:18:13.366Z","2.0.1":"2014-10-25T10:18:44.279Z","2.0.0":"2014-10-25T10:16:33.979Z","1.2.0":"2014-06-09T17:59:13.275Z","1.1.1":"2014-06-06T21:55:46.917Z","1.1.0":"2014-06-06T21:47:56.069Z","1.0.0":"2014-03-28T18:16:45.069Z"},"users":{},"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com","url":"https://mrjoelkemp.com/"},"repository":{"type":"git","url":"git+https://github.com/dependents/node-ast-module-types.git"},"versions":{"6.0.0":{"name":"ast-module-types","version":"6.0.0","description":"Collection of useful helper functions when trying to determine module type (CommonJS or AMD) properties of an AST node.","main":"index.js","scripts":{"lint":"xo","fix":"xo --fix","uvu":"uvu test -i fixtures -i utils","test":"npm run lint && npm run uvu","test:ci":"c8 npm run uvu"},"repository":{"type":"git","url":"git+https://github.com/dependents/node-ast-module-types.git"},"keywords":["esprima","module","type","define","require","factory"],"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com","url":"https://mrjoelkemp.com/"},"license":"MIT","bugs":{"url":"https://github.com/dependents/node-ast-module-types/issues"},"homepage":"https://github.com/dependents/node-ast-module-types","engines":{"node":">=18"},"devDependencies":{"c8":"^9.1.0","node-source-walk":"^7.0.0","uvu":"^0.5.6","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":"ast-module-types@6.0.0","gitHead":"d100d9a700c42a659c99ca29d961b6ce80d825d1","_nodeVersion":"20.11.1","_npmVersion":"10.2.4","dist":{"shasum":"ea6132bb44a115717299dfdac934d2d13e8ecd93","size":3691,"noattachment":false,"key":"/ast-module-types/-/ast-module-types-6.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ast-module-types/download/ast-module-types-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/ast-module-types_6.0.0_1712641803274_0.2520444836223057"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-04-09T05:50:03.436Z","publish_time":1712641803436,"_source_registry_name":"default","_cnpm_publish_time":1712641803436},"5.0.0":{"name":"ast-module-types","version":"5.0.0","description":"Collection of useful helper functions when trying to determine module type (CommonJS or AMD) properties of an AST node.","main":"index.js","scripts":{"lint":"xo","fix":"xo --fix","uvu":"uvu test -i fixtures -i utils","test":"npm run lint && npm run uvu","test:ci":"c8 npm run uvu"},"repository":{"type":"git","url":"git+https://github.com/dependents/node-ast-module-types.git"},"keywords":["esprima","module","type","define","require","factory"],"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com","url":"https://mrjoelkemp.com/"},"license":"MIT","bugs":{"url":"https://github.com/dependents/node-ast-module-types/issues"},"homepage":"https://github.com/dependents/node-ast-module-types","engines":{"node":">=14"},"devDependencies":{"c8":"^7.13.0","node-source-walk":"^6.0.0","uvu":"^0.5.6","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":"83a8e93171dfd30a1014539705bd021a84f4485a","_id":"ast-module-types@5.0.0","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"shasum":"32b2b05c56067ff38e95df66f11d6afd6c9ba16b","size":3662,"noattachment":false,"key":"/ast-module-types/-/ast-module-types-5.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ast-module-types/download/ast-module-types-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/ast-module-types_5.0.0_1683226481056_0.9829236209992667"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-05-04T18:54:41.211Z","publish_time":1683226481211,"_source_registry_name":"default","_cnpm_publish_time":1683226481211},"4.0.0":{"name":"ast-module-types","version":"4.0.0","description":"Collection of useful helper functions when trying to determine module type (CommonJS or AMD) properties of an AST node.","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-ast-module-types.git"},"keywords":["esprima","module","type","define","require","factory"],"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com","url":"https://mrjoelkemp.com/"},"license":"MIT","bugs":{"url":"https://github.com/dependents/node-ast-module-types/issues"},"homepage":"https://github.com/dependents/node-ast-module-types","engines":{"node":">=12.0"},"devDependencies":{"c8":"^7.13.0","eslint":"^8.36.0","mocha":"^9.2.2","node-source-walk":"^5.0.0"},"gitHead":"805d4a8a6fef7be78074d92c6eae4bcfd38c98f9","_id":"ast-module-types@4.0.0","_nodeVersion":"18.15.0","_npmVersion":"9.5.0","dist":{"shasum":"17e1cadd5b5b108e7295b0cf0cff21ccc226b639","size":3410,"noattachment":false,"key":"/ast-module-types/-/ast-module-types-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ast-module-types/download/ast-module-types-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/ast-module-types_4.0.0_1679211589082_0.8642380665579101"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-03-19T07:39:49.240Z","publish_time":1679211589240,"_cnpm_publish_time":1679211589240},"3.0.0":{"name":"ast-module-types","version":"3.0.0","description":"Collection of useful helper functions when trying to determine module type (CommonJS or AMD) properties of an AST node.","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-ast-module-types.git"},"keywords":["esprima","module","type","define","require","factory"],"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com","url":"https://mrjoelkemp.com/"},"license":"MIT","bugs":{"url":"https://github.com/dependents/node-ast-module-types/issues"},"homepage":"https://github.com/dependents/node-ast-module-types","engines":{"node":">=6.0"},"devDependencies":{"eslint":"^5.16.0","mocha":"^6.2.3","node-source-walk":"^4.2.2"},"gitHead":"b74e677a81aa1bccf87b6dc65906612b85f2454a","_id":"ast-module-types@3.0.0","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"shasum":"9a6d8a80f438b6b8fe4995699d700297f398bf81","size":3328,"noattachment":false,"key":"/ast-module-types/-/ast-module-types-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ast-module-types/download/ast-module-types-3.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/ast-module-types_3.0.0_1645528608243_0.6584593877050993"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-02-22T11:16:52.015Z","publish_time":1645528608362,"_cnpm_publish_time":1645528608362},"2.7.1":{"name":"ast-module-types","version":"2.7.1","description":"Collection of useful helper functions when trying to determine module type (CommonJS or AMD) properties of an AST node.","main":"index.js","scripts":{"test":"mocha test/test.js"},"repository":{"type":"git","url":"git+https://github.com/mrjoelkemp/node-ast-module-types.git"},"keywords":["esprima","module","type","define","require","factory"],"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com","url":"http://www.mrjoelkemp.com/"},"license":"MIT","bugs":{"url":"https://github.com/mrjoelkemp/node-ast-module-types/issues"},"homepage":"https://github.com/mrjoelkemp/node-ast-module-types","devDependencies":{"mocha":"^2.0.1","node-source-walk":"^3.0.0"},"gitHead":"68f7b79fc7763d41c9ee7abb8c95fc834e5ef993","_id":"ast-module-types@2.7.1","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},"dist":{"shasum":"3f7989ef8dfa1fdb82dfe0ab02bdfc7c77a57dd3","size":3910,"noattachment":false,"key":"/ast-module-types/-/ast-module-types-2.7.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/ast-module-types/download/ast-module-types-2.7.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/ast-module-types_2.7.1_1604245660810_0.32615606816836884"},"_hasShrinkwrap":false,"publish_time":1604245660951,"_cnpm_publish_time":1604245660951},"2.7.0":{"name":"ast-module-types","version":"2.7.0","description":"Collection of useful helper functions when trying to determine module type (CommonJS or AMD) properties of an AST node.","main":"index.js","scripts":{"test":"mocha test/test.js"},"repository":{"type":"git","url":"git+https://github.com/mrjoelkemp/node-ast-module-types.git"},"keywords":["esprima","module","type","define","require","factory"],"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com","url":"http://www.mrjoelkemp.com/"},"license":"MIT","bugs":{"url":"https://github.com/mrjoelkemp/node-ast-module-types/issues"},"homepage":"https://github.com/mrjoelkemp/node-ast-module-types","devDependencies":{"mocha":"^2.0.1","node-source-walk":"^3.0.0"},"gitHead":"f5c2a2ca2b182e7a4b6ac0c58c95e51b6b357273","_id":"ast-module-types@2.7.0","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},"dist":{"shasum":"916b00caabf1e454549cab3b266cd7ebf7046834","size":3645,"noattachment":false,"key":"/ast-module-types/-/ast-module-types-2.7.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ast-module-types/download/ast-module-types-2.7.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/ast-module-types_2.7.0_1603672133594_0.2721700525314208"},"_hasShrinkwrap":false,"publish_time":1603672133725,"_cnpm_publish_time":1603672133725},"2.6.0":{"name":"ast-module-types","version":"2.6.0","description":"Collection of useful helper functions when trying to determine module type (CommonJS or AMD) properties of an AST node.","main":"index.js","scripts":{"test":"mocha test/test.js"},"repository":{"type":"git","url":"git+https://github.com/mrjoelkemp/node-ast-module-types.git"},"keywords":["esprima","module","type","define","require","factory"],"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com","url":"http://www.mrjoelkemp.com/"},"license":"MIT","bugs":{"url":"https://github.com/mrjoelkemp/node-ast-module-types/issues"},"homepage":"https://github.com/mrjoelkemp/node-ast-module-types","devDependencies":{"mocha":"^2.0.1","node-source-walk":"^3.0.0"},"gitHead":"a54db7a0100a1b3ebdc9b23fa238b1d96f054345","_id":"ast-module-types@2.6.0","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},"dist":{"shasum":"f9f367fd273bbe01e52f2c51b5f46b65801d5d7f","size":3373,"noattachment":false,"key":"/ast-module-types/-/ast-module-types-2.6.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ast-module-types/download/ast-module-types-2.6.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/ast-module-types_2.6.0_1574540519805_0.032670483436002984"},"_hasShrinkwrap":false,"publish_time":1574540519918,"_cnpm_publish_time":1574540519918},"2.5.0":{"name":"ast-module-types","version":"2.5.0","description":"Collection of useful helper functions when trying to determine module type (CommonJS or AMD) properties of an AST node.","main":"index.js","scripts":{"test":"mocha test/test.js"},"repository":{"type":"git","url":"git+https://github.com/mrjoelkemp/node-ast-module-types.git"},"keywords":["esprima","module","type","define","require","factory"],"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com","url":"http://www.mrjoelkemp.com/"},"license":"MIT","bugs":{"url":"https://github.com/mrjoelkemp/node-ast-module-types/issues"},"homepage":"https://github.com/mrjoelkemp/node-ast-module-types","devDependencies":{"mocha":"^2.0.1","node-source-walk":"^3.0.0"},"gitHead":"6b18610884c2f4b70302183f9788d19d2754bae5","_id":"ast-module-types@2.5.0","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},"dist":{"shasum":"44b8bcd51684329a77f2af6b2587df9ea6b4d5ff","size":3295,"noattachment":false,"key":"/ast-module-types/-/ast-module-types-2.5.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ast-module-types/download/ast-module-types-2.5.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/ast-module-types_2.5.0_1549287280376_0.9575859756596303"},"_hasShrinkwrap":false,"publish_time":1549287280486,"_cnpm_publish_time":1549287280486},"2.4.0":{"name":"ast-module-types","version":"2.4.0","description":"Collection of useful helper functions when trying to determine module type (CommonJS or AMD) properties of an AST node.","main":"index.js","scripts":{"test":"mocha test/test.js"},"repository":{"type":"git","url":"git+https://github.com/mrjoelkemp/node-ast-module-types.git"},"keywords":["esprima","module","type","define","require","factory"],"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com","url":"http://www.mrjoelkemp.com/"},"license":"MIT","bugs":{"url":"https://github.com/mrjoelkemp/node-ast-module-types/issues"},"homepage":"https://github.com/mrjoelkemp/node-ast-module-types","devDependencies":{"mocha":"^2.0.1","node-source-walk":"^3.0.0"},"gitHead":"3ebdf3b8f0c89c3d2f5539873fe83a55875281c5","_id":"ast-module-types@2.4.0","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},"dist":{"shasum":"b7164dcdaa15d80832f4573b2ea53374ebf76538","size":3291,"noattachment":false,"key":"/ast-module-types/-/ast-module-types-2.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ast-module-types/download/ast-module-types-2.4.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/ast-module-types_2.4.0_1537888240568_0.21263266360314592"},"_hasShrinkwrap":false,"publish_time":1537888240862,"_cnpm_publish_time":1537888240862},"2.3.2":{"name":"ast-module-types","version":"2.3.2","description":"Collection of useful helper functions when trying to determine module type (CommonJS or AMD) properties of an AST node.","main":"index.js","scripts":{"test":"mocha test/test.js"},"repository":{"type":"git","url":"git+https://github.com/mrjoelkemp/node-ast-module-types.git"},"keywords":["esprima","module","type","define","require","factory"],"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com","url":"http://www.mrjoelkemp.com/"},"license":"MIT","bugs":{"url":"https://github.com/mrjoelkemp/node-ast-module-types/issues"},"homepage":"https://github.com/mrjoelkemp/node-ast-module-types","devDependencies":{"mocha":"~2.0.1","node-source-walk":"^3.0.0"},"gitHead":"a53a84e188a08dd362839eaacd5f9d72a5327817","_id":"ast-module-types@2.3.2","_shasum":"4bb1de2d729678824429e22a628d03e87df4ad11","_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":"4bb1de2d729678824429e22a628d03e87df4ad11","size":3251,"noattachment":false,"key":"/ast-module-types/-/ast-module-types-2.3.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/ast-module-types/download/ast-module-types-2.3.2.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/ast-module-types-2.3.2.tgz_1466047126379_0.7128612319938838"},"directories":{},"publish_time":1466047127408,"_cnpm_publish_time":1466047127408,"_hasShrinkwrap":false},"2.3.1":{"name":"ast-module-types","version":"2.3.1","description":"Collection of useful helper functions when trying to determine module type (CommonJS or AMD) properties of an AST node.","main":"index.js","scripts":{"test":"mocha test/test.js"},"repository":{"type":"git","url":"git+https://github.com/mrjoelkemp/node-ast-module-types.git"},"keywords":["esprima","module","type","define","require","factory"],"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com","url":"http://www.mrjoelkemp.com/"},"license":"MIT","bugs":{"url":"https://github.com/mrjoelkemp/node-ast-module-types/issues"},"homepage":"https://github.com/mrjoelkemp/node-ast-module-types","devDependencies":{"mocha":"~2.0.1","node-source-walk":"^3.0.0"},"gitHead":"f0fb0942f1080d8de8311b5b05ba3ba39e7ae473","_id":"ast-module-types@2.3.1","_shasum":"7f381cdb92ad82dc00be1ab147f57c2e790ef3ca","_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":"7f381cdb92ad82dc00be1ab147f57c2e790ef3ca","size":3241,"noattachment":false,"key":"/ast-module-types/-/ast-module-types-2.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/ast-module-types/download/ast-module-types-2.3.1.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/ast-module-types-2.3.1.tgz_1466042362273_0.9197062440216541"},"directories":{},"publish_time":1466042363244,"_cnpm_publish_time":1466042363244,"_hasShrinkwrap":false},"2.3.0":{"name":"ast-module-types","version":"2.3.0","description":"Collection of useful helper functions when trying to determine module type (CommonJS or AMD) properties of an AST node.","main":"index.js","scripts":{"test":"mocha test/test.js"},"repository":{"type":"git","url":"https://github.com/mrjoelkemp/node-ast-module-types"},"keywords":["esprima","module","type","define","require","factory"],"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com","url":"http://www.mrjoelkemp.com/"},"license":"MIT","bugs":{"url":"https://github.com/mrjoelkemp/node-ast-module-types/issues"},"homepage":"https://github.com/mrjoelkemp/node-ast-module-types","devDependencies":{"mocha":"~2.0.1","node-source-walk":"~1.2.0"},"gitHead":"d8225a9f6d288776813f65a6eeeff0a1379be5ae","_id":"ast-module-types@2.3.0","_shasum":"adb69488565be39d995488b2b813ccc45205e574","_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":"adb69488565be39d995488b2b813ccc45205e574","size":3266,"noattachment":false,"key":"/ast-module-types/-/ast-module-types-2.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ast-module-types/download/ast-module-types-2.3.0.tgz"},"directories":{},"publish_time":1436020226302,"_cnpm_publish_time":1436020226302,"_hasShrinkwrap":false},"2.2.2":{"name":"ast-module-types","version":"2.2.2","description":"Collection of useful helper functions when trying to determine module type (CommonJS or AMD) properties of an AST node.","main":"index.js","scripts":{"test":"mocha test/test.js"},"repository":{"type":"git","url":"https://github.com/mrjoelkemp/node-ast-module-types"},"keywords":["esprima","module","type","define","require","factory"],"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com","url":"http://www.mrjoelkemp.com/"},"license":"MIT","bugs":{"url":"https://github.com/mrjoelkemp/node-ast-module-types/issues"},"homepage":"https://github.com/mrjoelkemp/node-ast-module-types","devDependencies":{"mocha":"~2.0.1","node-source-walk":"~1.2.0"},"gitHead":"e0033a793005529d7056d0748207605a40ea6d99","_id":"ast-module-types@2.2.2","_shasum":"1b0385b5940d08053bffe6798cde22c2ba79d377","_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":"1b0385b5940d08053bffe6798cde22c2ba79d377","size":3168,"noattachment":false,"key":"/ast-module-types/-/ast-module-types-2.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/ast-module-types/download/ast-module-types-2.2.2.tgz"},"directories":{},"publish_time":1421723532269,"_cnpm_publish_time":1421723532269,"_hasShrinkwrap":false},"2.2.1":{"name":"ast-module-types","version":"2.2.1","description":"Collection of useful helper functions when trying to determine module type (CommonJS or AMD) properties of an AST node.","main":"index.js","scripts":{"test":"mocha test/test.js"},"repository":{"type":"git","url":"https://github.com/mrjoelkemp/node-ast-module-types"},"keywords":["esprima","module","type","define","require","factory"],"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com","url":"http://www.mrjoelkemp.com/"},"license":"MIT","bugs":{"url":"https://github.com/mrjoelkemp/node-ast-module-types/issues"},"homepage":"https://github.com/mrjoelkemp/node-ast-module-types","devDependencies":{"mocha":"~2.0.1","node-source-walk":"~1.2.0"},"gitHead":"b8aea87def42f516519955e8301ff697aeaf3710","_id":"ast-module-types@2.2.1","_shasum":"bf854cac580e7d3cadaca1601e56f59947db60ab","_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":"bf854cac580e7d3cadaca1601e56f59947db60ab","size":3065,"noattachment":false,"key":"/ast-module-types/-/ast-module-types-2.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/ast-module-types/download/ast-module-types-2.2.1.tgz"},"directories":{},"publish_time":1415814295377,"_cnpm_publish_time":1415814295377,"_hasShrinkwrap":false},"2.2.0":{"name":"ast-module-types","version":"2.2.0","description":"Collection of useful helper functions when trying to determine module type (CommonJS or AMD) properties of an AST node.","main":"index.js","scripts":{"test":"mocha test/test.js"},"repository":{"type":"git","url":"https://github.com/mrjoelkemp/node-ast-module-types"},"keywords":["esprima","module","type","define","require","factory"],"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com","url":"http://www.mrjoelkemp.com/"},"license":"MIT","bugs":{"url":"https://github.com/mrjoelkemp/node-ast-module-types/issues"},"homepage":"https://github.com/mrjoelkemp/node-ast-module-types","devDependencies":{"node-source-walk":"~1.2.0"},"gitHead":"ca483eb81dcd97220b75ac79e907ac1ddbbedcfe","_id":"ast-module-types@2.2.0","_shasum":"ed39860eaf1e7f9706ecab7e0ca18c519a2990e4","_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":"ed39860eaf1e7f9706ecab7e0ca18c519a2990e4","size":2981,"noattachment":false,"key":"/ast-module-types/-/ast-module-types-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ast-module-types/download/ast-module-types-2.2.0.tgz"},"directories":{},"publish_time":1415811214058,"_cnpm_publish_time":1415811214058,"_hasShrinkwrap":false},"2.1.0":{"name":"ast-module-types","version":"2.1.0","description":"Collection of useful helper functions when trying to determine module type (CommonJS or AMD) properties of an AST node.","main":"index.js","scripts":{"test":"mocha test/test.js"},"repository":{"type":"git","url":"https://github.com/mrjoelkemp/node-ast-module-types"},"keywords":["esprima","module","type","define","require","factory"],"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com","url":"http://www.mrjoelkemp.com/"},"license":"MIT","bugs":{"url":"https://github.com/mrjoelkemp/node-ast-module-types/issues"},"homepage":"https://github.com/mrjoelkemp/node-ast-module-types","devDependencies":{"node-source-walk":"~1.2.0"},"gitHead":"2799695a69d026127cc44c279bf3f86b26ab521d","_id":"ast-module-types@2.1.0","_shasum":"e217738004f22a83b579dbd21f12253caf7dc201","_from":".","_npmVersion":"1.4.14","_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":"e217738004f22a83b579dbd21f12253caf7dc201","size":2756,"noattachment":false,"key":"/ast-module-types/-/ast-module-types-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ast-module-types/download/ast-module-types-2.1.0.tgz"},"directories":{},"publish_time":1414469893366,"_cnpm_publish_time":1414469893366,"_hasShrinkwrap":false},"2.0.1":{"name":"ast-module-types","version":"2.0.1","description":"Collection of useful helper functions when trying to determine module type (CommonJS or AMD) properties of an AST node.","main":"index.js","scripts":{"test":"mocha test/test.js"},"repository":{"type":"git","url":"https://github.com/mrjoelkemp/node-ast-module-types"},"keywords":["esprima","module","type","define","require","factory"],"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com","url":"http://www.mrjoelkemp.com/"},"license":"MIT","bugs":{"url":"https://github.com/mrjoelkemp/node-ast-module-types/issues"},"homepage":"https://github.com/mrjoelkemp/node-ast-module-types","devDependencies":{"esprima":"~1.2.2","node-source-walk":"~1.1.2"},"gitHead":"86ad4c2ab2faa9e39a4db077fb38a8e9e04c2512","_id":"ast-module-types@2.0.1","_shasum":"86de352f077054f685a083e70b09ece301bafb08","_from":".","_npmVersion":"1.4.14","_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":"86de352f077054f685a083e70b09ece301bafb08","size":2633,"noattachment":false,"key":"/ast-module-types/-/ast-module-types-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/ast-module-types/download/ast-module-types-2.0.1.tgz"},"directories":{},"publish_time":1414232324279,"_cnpm_publish_time":1414232324279,"_hasShrinkwrap":false},"2.0.0":{"name":"ast-module-types","version":"2.0.0","description":"Collection of useful helper functions when trying to determine module type (CommonJS or AMD) properties of an AST node.","main":"index.js","scripts":{"test":"mocha test/test.js"},"repository":{"type":"git","url":"https://github.com/mrjoelkemp/node-ast-module-types"},"keywords":["esprima","module","type","define","require","factory"],"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com","url":"http://www.mrjoelkemp.com/"},"license":"MIT","bugs":{"url":"https://github.com/mrjoelkemp/node-ast-module-types/issues"},"homepage":"https://github.com/mrjoelkemp/node-ast-module-types","devDependencies":{"esprima":"~1.2.2","node-source-walk":"~1.1.2"},"gitHead":"048c184c66cdcb72e97aada834e59411c715fea5","_id":"ast-module-types@2.0.0","_shasum":"fe9fb6ce1a69a225e73b75fa4e6573f655544446","_from":".","_npmVersion":"1.4.14","_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":"fe9fb6ce1a69a225e73b75fa4e6573f655544446","size":2627,"noattachment":false,"key":"/ast-module-types/-/ast-module-types-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ast-module-types/download/ast-module-types-2.0.0.tgz"},"directories":{},"publish_time":1414232193979,"_cnpm_publish_time":1414232193979,"_hasShrinkwrap":false},"1.2.0":{"name":"ast-module-types","version":"1.2.0","description":"Collection of useful helper functions when trying to determine module type (CommonJS or AMD) properties of an AST node.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/mrjoelkemp/node-ast-module-types"},"keywords":["esprima","module","type","define","require","factory"],"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com","url":"http://www.mrjoelkemp.com/"},"license":"MIT","bugs":{"url":"https://github.com/mrjoelkemp/node-ast-module-types/issues"},"homepage":"https://github.com/mrjoelkemp/node-ast-module-types","_id":"ast-module-types@1.2.0","_shasum":"7eba489219b948f100e76aae6b708e1301354b11","_from":".","_npmVersion":"1.4.7","_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":"7eba489219b948f100e76aae6b708e1301354b11","size":1635,"noattachment":false,"key":"/ast-module-types/-/ast-module-types-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ast-module-types/download/ast-module-types-1.2.0.tgz"},"directories":{},"publish_time":1402336753275,"_cnpm_publish_time":1402336753275,"_hasShrinkwrap":false},"1.1.1":{"name":"ast-module-types","version":"1.1.1","description":"Collection of useful helper functions when trying to determine module type (CommonJS or AMD) properties of an AST node.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/mrjoelkemp/node-ast-module-types"},"keywords":["esprima","module","type","define","require","factory"],"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com","url":"http://www.mrjoelkemp.com/"},"license":"MIT","bugs":{"url":"https://github.com/mrjoelkemp/node-ast-module-types/issues"},"homepage":"https://github.com/mrjoelkemp/node-ast-module-types","_id":"ast-module-types@1.1.1","_shasum":"80579231d63bbcdeb9e0bcd783694c60d3184082","_from":".","_npmVersion":"1.4.7","_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":"80579231d63bbcdeb9e0bcd783694c60d3184082","size":1565,"noattachment":false,"key":"/ast-module-types/-/ast-module-types-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/ast-module-types/download/ast-module-types-1.1.1.tgz"},"directories":{},"publish_time":1402091746917,"_cnpm_publish_time":1402091746917,"_hasShrinkwrap":false},"1.1.0":{"name":"ast-module-types","version":"1.1.0","description":"Collection of useful helper functions when trying to determine module type (CommonJS or AMD) properties of an AST node.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/mrjoelkemp/node-ast-module-types"},"keywords":["esprima","module","type","define","require","factory"],"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com","url":"http://www.mrjoelkemp.com/"},"license":"MIT","bugs":{"url":"https://github.com/mrjoelkemp/node-ast-module-types/issues"},"homepage":"https://github.com/mrjoelkemp/node-ast-module-types","_id":"ast-module-types@1.1.0","_shasum":"65e963a0906ddf5e670b6a761b340b39c776a3c3","_from":".","_npmVersion":"1.4.7","_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":"65e963a0906ddf5e670b6a761b340b39c776a3c3","size":1566,"noattachment":false,"key":"/ast-module-types/-/ast-module-types-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ast-module-types/download/ast-module-types-1.1.0.tgz"},"directories":{},"publish_time":1402091276069,"_cnpm_publish_time":1402091276069,"_hasShrinkwrap":false},"1.0.0":{"name":"ast-module-types","version":"1.0.0","description":"Collection of useful helper functions when trying to determine module type (CommonJS or AMD) properties of an AST node.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/mrjoelkemp/node-ast-module-types"},"keywords":["esprima","module","type","define","require","factory"],"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com","url":"http://www.mrjoelkemp.com/"},"license":"MIT","bugs":{"url":"https://github.com/mrjoelkemp/node-ast-module-types/issues"},"homepage":"https://github.com/mrjoelkemp/node-ast-module-types","_id":"ast-module-types@1.0.0","dist":{"shasum":"e7e7568ba2510893a41ab308b573af0ed8fc931c","size":1397,"noattachment":false,"key":"/ast-module-types/-/ast-module-types-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ast-module-types/download/ast-module-types-1.0.0.tgz"},"_from":".","_npmVersion":"1.4.4","_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"}],"directories":{},"publish_time":1396030605069,"_hasShrinkwrap":false,"_cnpm_publish_time":1396030605069}},"readme":"# ast-module-types\n\n[![CI](https://img.shields.io/github/actions/workflow/status/dependents/node-ast-module-types/ci.yml?branch=main&label=CI&logo=github)](https://github.com/dependents/node-ast-module-types/actions/workflows/ci.yml?query=branch%3Amain)\n[![npm version](https://img.shields.io/npm/v/ast-module-types?logo=npm&logoColor=fff)](https://www.npmjs.com/package/ast-module-types)\n[![npm downloads](https://img.shields.io/npm/dm/ast-module-types)](https://www.npmjs.com/package/ast-module-types)\n\nCollection of useful helper functions when trying to determine\nmodule type (CommonJS or AMD) properties of an AST node.\n\n**AST checks are based on the Esprima (Spidermonkey) format**\n\n```sh\nnpm install ast-module-types\n```\n\n## API\n\nEach of these takes in a single AST node argument\nand returns a boolean.\n\n* `isDefineAMD`: if node matches any form of an AMD `define` function call\n* `isRequire`: if node matches a `require` function all (declaring a dependency)\n* `isTopLevelRequire`: if node matches a `require` at the very top of the file.\n* `isAMDDriverScriptRequire`: if node matches an AMD driver script's require call `require([deps], function)`\n* `isExports`: if the node matches CommonJS `module.exports` or `exports` (defining a module)\n\nDetecting the various forms of defining an AMD module\n\n* `isNamedForm`: if the node is a define call of the form: `define('name', [deps], func)`\n* `isDependencyForm`: if the node is a define call of the form: `define([deps], func)`\n* `isFactoryForm`: if the node is a define call of the form: `define(func(require))`\n* `isNoDependencyForm`: if the node is a define call of the form: `define({})`\n* `isREMForm`: if the node matches the form: `define(function(require, exports, module){});`\n\nES6 Types\n\n*All types abide by the [EStree spec](https://github.com/estree/estree/blob/master/es2015.md)*\n\n* `isES6Import`: if the node is any of the es6 import forms\n* `isES6Export`: if the node is of any es6 export forms\n\n## Usage\n\n```js\nconst types = require('ast-module-types');\n\n// Assume node is some node of an AST that you parsed using esprima or esprima-fb\n// ...\n\nconsole.log(types.isDefineAMD(node));\n```\n\n## License\n\n[MIT](LICENSE)\n","_attachments":{},"homepage":"https://github.com/dependents/node-ast-module-types","bugs":{"url":"https://github.com/dependents/node-ast-module-types/issues"},"license":"MIT"}