{"_id":"get-amd-module-type","_rev":"3319566","name":"get-amd-module-type","description":"Get the type of an AMD module used for an AST node or within a file","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:43.000Z","created":"2014-10-25T21:46:46.706Z","6.0.0":"2024-04-14T06:39:26.622Z","5.0.1":"2023-05-11T07:08:43.661Z","5.0.0":"2023-05-04T19:02:29.771Z","4.1.0":"2023-03-19T07:49:22.112Z","4.0.0":"2022-03-03T13:24:05.655Z","3.0.2":"2022-02-26T19:25:13.156Z","3.0.1":"2022-02-26T19:24:55.903Z","3.0.0":"2018-09-03T16:47:39.746Z","2.0.5":"2016-09-05T16:59:33.191Z","2.0.4":"2016-06-16T02:10:55.856Z","2.0.3":"2015-02-28T02:27:45.189Z","2.0.2":"2014-11-08T15:05:59.519Z","2.0.1":"2014-11-08T03:51:14.595Z","2.0.0":"2014-11-01T17:52:44.371Z","1.0.0":"2014-10-25T21:46:46.706Z"},"users":{},"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com"},"repository":{"type":"git","url":"git+https://github.com/dependents/node-get-amd-module-type.git"},"versions":{"6.0.0":{"name":"get-amd-module-type","version":"6.0.0","description":"Get the type of an AMD module used for an AST node or within a file","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-get-amd-module-type.git"},"keywords":["module","type","amd","factory","form"],"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com"},"license":"MIT","bugs":{"url":"https://github.com/dependents/node-get-amd-module-type/issues"},"homepage":"https://github.com/dependents/node-get-amd-module-type","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"],"max-nested-callbacks":["error",5],"operator-linebreak":["error","after"],"object-curly-spacing":["error","always"],"prefer-template":"error","space-before-function-paren":["error","never"],"unicorn/explicit-length-check":"off","unicorn/prefer-module":"off","unicorn/prefer-node-protocol":"off","unicorn/prefer-top-level-await":"off","unicorn/prevent-abbreviations":"off"},"overrides":[{"files":"test/**","envs":["mocha"]}]},"_id":"get-amd-module-type@6.0.0","gitHead":"cb5b096decbec2104b7d673a0bf4303b4d67dd98","_nodeVersion":"20.11.1","_npmVersion":"10.2.4","dist":{"shasum":"702ddcbe6cb8a41ab8f69ce5ea520bf3b0ede69a","size":2782,"noattachment":false,"key":"/get-amd-module-type/-/get-amd-module-type-6.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/get-amd-module-type/download/get-amd-module-type-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/get-amd-module-type_6.0.0_1713076766477_0.12189804926386172"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-04-14T06:39:26.622Z","publish_time":1713076766622,"_source_registry_name":"default","_cnpm_publish_time":1713076766622},"5.0.1":{"name":"get-amd-module-type","version":"5.0.1","description":"Get the type of an AMD module used for an AST node or within a file","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-get-amd-module-type.git"},"keywords":["module","type","amd","factory","form"],"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com"},"license":"MIT","bugs":{"url":"https://github.com/dependents/node-get-amd-module-type/issues"},"homepage":"https://github.com/dependents/node-get-amd-module-type","engines":{"node":">=14"},"dependencies":{"ast-module-types":"^5.0.0","node-source-walk":"^6.0.1"},"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"],"max-nested-callbacks":["error",5],"operator-linebreak":["error","after"],"object-curly-spacing":["error","always"],"prefer-template":"error","space-before-function-paren":["error","never"],"unicorn/explicit-length-check":"off","unicorn/prefer-module":"off","unicorn/prefer-node-protocol":"off","unicorn/prefer-top-level-await":"off","unicorn/prevent-abbreviations":"off"},"overrides":[{"files":"test/**","envs":["mocha"]}]},"gitHead":"e4dc9e8e5ca1ddc19055d86c4c223c28962810c6","_id":"get-amd-module-type@5.0.1","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"shasum":"bef38ea3674e1aa1bda9c59c8b0da598582f73f2","size":2765,"noattachment":false,"key":"/get-amd-module-type/-/get-amd-module-type-5.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/get-amd-module-type/download/get-amd-module-type-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/get-amd-module-type_5.0.1_1683788923496_0.3121085651835158"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-05-11T07:08:43.661Z","publish_time":1683788923661,"_source_registry_name":"default","_cnpm_publish_time":1683788923661},"5.0.0":{"name":"get-amd-module-type","version":"5.0.0","description":"Get the type of an AMD module used for an AST node or within a file","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-get-amd-module-type.git"},"keywords":["module","type","amd","factory","form"],"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com"},"license":"MIT","bugs":{"url":"https://github.com/dependents/node-get-amd-module-type/issues"},"homepage":"https://github.com/dependents/node-get-amd-module-type","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"],"max-nested-callbacks":["error",5],"operator-linebreak":["error","after"],"object-curly-spacing":["error","always"],"prefer-template":"error","space-before-function-paren":["error","never"],"unicorn/explicit-length-check":"off","unicorn/prefer-module":"off","unicorn/prefer-node-protocol":"off","unicorn/prefer-top-level-await":"off","unicorn/prevent-abbreviations":"off"},"overrides":[{"files":"test/**","envs":["mocha"]}]},"gitHead":"f26986d8281bc5748a73b5db19024645ac49bdc1","_id":"get-amd-module-type@5.0.0","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"shasum":"b885470ad91332cd4786e9530387b49781991bed","size":2745,"noattachment":false,"key":"/get-amd-module-type/-/get-amd-module-type-5.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/get-amd-module-type/download/get-amd-module-type-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/get-amd-module-type_5.0.0_1683226949596_0.034142373480265054"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-05-04T19:02:29.771Z","publish_time":1683226949771,"_source_registry_name":"default","_cnpm_publish_time":1683226949771},"4.1.0":{"name":"get-amd-module-type","version":"4.1.0","description":"Get the type of an AMD module used for an AST node or within a file","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-get-amd-module-type.git"},"keywords":["module","type","amd","factory","form"],"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com"},"license":"MIT","bugs":{"url":"https://github.com/dependents/node-get-amd-module-type/issues"},"homepage":"https://github.com/dependents/node-get-amd-module-type","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":"b10e02f0d9ca040e88f1db12cf841c48a471f6a6","_id":"get-amd-module-type@4.1.0","_nodeVersion":"18.15.0","_npmVersion":"9.5.0","dist":{"shasum":"af1396d02cd935cb6fafdc4a5282395db3422db6","size":2403,"noattachment":false,"key":"/get-amd-module-type/-/get-amd-module-type-4.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/get-amd-module-type/download/get-amd-module-type-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/get-amd-module-type_4.1.0_1679212161956_0.7163073127420971"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-03-19T07:49:22.112Z","publish_time":1679212162112,"_cnpm_publish_time":1679212162112},"4.0.0":{"name":"get-amd-module-type","version":"4.0.0","description":"Get the type of an AMD module used for an AST node or within a file","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-get-amd-module-type.git"},"keywords":["module","type","amd","factory","form"],"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com"},"license":"MIT","bugs":{"url":"https://github.com/dependents/node-get-amd-module-type/issues"},"homepage":"https://github.com/dependents/node-get-amd-module-type","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":"410217ada7c8b90c8ba1ae434cab2e1c26a180a2","_id":"get-amd-module-type@4.0.0","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"shasum":"3d4e5b44eec81f8337157d7c52c4fa9389aff78b","size":2382,"noattachment":false,"key":"/get-amd-module-type/-/get-amd-module-type-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/get-amd-module-type/download/get-amd-module-type-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/get-amd-module-type_4.0.0_1646313845490_0.8828294254972902"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-03-03T13:24:11.888Z","publish_time":1646313845655,"_cnpm_publish_time":1646313845655},"3.0.2":{"name":"get-amd-module-type","version":"3.0.2","description":"Get the type of an AMD module used for an AST node or within a file","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-get-amd-module-type.git"},"keywords":["module","type","amd","factory","form"],"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com"},"license":"MIT","bugs":{"url":"https://github.com/dependents/node-get-amd-module-type/issues"},"homepage":"https://github.com/dependents/node-get-amd-module-type","engines":{"node":">=6.0"},"dependencies":{"ast-module-types":"^3.0.0","node-source-walk":"^4.2.2"},"devDependencies":{"eslint":"^5.16.0","mocha":"^6.2.3"},"gitHead":"dbe4cf958e45bde31b946bbf73d69f8d8fc840e9","_id":"get-amd-module-type@3.0.2","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"shasum":"46550cee2b8e1fa4c3f2c8a5753c36990aa49ab0","size":2365,"noattachment":false,"key":"/get-amd-module-type/-/get-amd-module-type-3.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/get-amd-module-type/download/get-amd-module-type-3.0.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/get-amd-module-type_3.0.2_1645903512995_0.0684786243403821"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-02-26T19:25:15.459Z","publish_time":1645903513156,"_cnpm_publish_time":1645903513156},"3.0.1":{"name":"get-amd-module-type","version":"3.0.1","description":"Get the type of AMD module used for an AST node or within a file","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-get-amd-module-type.git"},"keywords":["module","type","amd","factory","form"],"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com"},"license":"MIT","bugs":{"url":"https://github.com/dependents/node-get-amd-module-type/issues"},"homepage":"https://github.com/dependents/node-get-amd-module-type","engines":{"node":">=6.0"},"dependencies":{"ast-module-types":"^3.0.0","node-source-walk":"^4.2.2"},"devDependencies":{"eslint":"^5.16.0","mocha":"^6.2.3"},"gitHead":"2bdda032736cb6388eac9843f9749629e0bf7754","_id":"get-amd-module-type@3.0.1","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"shasum":"27ee1cfe290bf441aff39fd1283a9d2b7071da33","size":2299,"noattachment":false,"key":"/get-amd-module-type/-/get-amd-module-type-3.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/get-amd-module-type/download/get-amd-module-type-3.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/get-amd-module-type_3.0.1_1645903495769_0.003314599854818079"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-02-26T19:24:58.608Z","publish_time":1645903495903,"_cnpm_publish_time":1645903495903},"3.0.0":{"name":"get-amd-module-type","version":"3.0.0","description":"Get the type of AMD module used for an AST node or within a file","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha test/test.js"},"repository":{"type":"git","url":"git+https://github.com/mrjoelkemp/node-get-amd-module-type.git"},"keywords":["module","type","amd","factory","form"],"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com"},"license":"MIT","bugs":{"url":"https://github.com/mrjoelkemp/node-get-amd-module-type/issues"},"homepage":"https://github.com/mrjoelkemp/node-get-amd-module-type","engines":{"node":">=6.0"},"devDependencies":{"mocha":"^5.2.0"},"dependencies":{"ast-module-types":"^2.3.2","node-source-walk":"^4.0.0"},"gitHead":"ee3ae96f23ac1d3241d133c2dd9032027af59e58","_id":"get-amd-module-type@3.0.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.3","_npmUser":{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},"dist":{"shasum":"bb334662fa04427018c937774570de495845c288","size":1609,"noattachment":false,"key":"/get-amd-module-type/-/get-amd-module-type-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/get-amd-module-type/download/get-amd-module-type-3.0.0.tgz"},"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/get-amd-module-type_3.0.0_1535993259608_0.31026087394589386"},"_hasShrinkwrap":false,"publish_time":1535993259746,"_cnpm_publish_time":1535993259746},"2.0.5":{"name":"get-amd-module-type","version":"2.0.5","description":"Get the type of AMD module used for an AST node or within a file","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha test/test.js"},"repository":{"type":"git","url":"git+https://github.com/mrjoelkemp/node-get-amd-module-type.git"},"keywords":["module","type","amd","factory","form"],"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com"},"license":"MIT","bugs":{"url":"https://github.com/mrjoelkemp/node-get-amd-module-type/issues"},"homepage":"https://github.com/mrjoelkemp/node-get-amd-module-type","devDependencies":{"mocha":"~2.0.1"},"dependencies":{"ast-module-types":"^2.3.2","node-source-walk":"^3.2.0"},"gitHead":"eaee940e83b13e2d6d99b9f985fc05f489306eae","_id":"get-amd-module-type@2.0.5","_shasum":"e671ec5a96ad5fbf53a3a22a289e9238c772ddb0","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.1","_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":"e671ec5a96ad5fbf53a3a22a289e9238c772ddb0","size":1654,"noattachment":false,"key":"/get-amd-module-type/-/get-amd-module-type-2.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/get-amd-module-type/download/get-amd-module-type-2.0.5.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/get-amd-module-type-2.0.5.tgz_1473094772561_0.2968246336095035"},"publish_time":1473094773191,"_cnpm_publish_time":1473094773191,"_hasShrinkwrap":false},"2.0.4":{"name":"get-amd-module-type","version":"2.0.4","description":"Get the type of AMD module used for an AST node or within a file","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha test/test.js"},"repository":{"type":"git","url":"git+https://github.com/mrjoelkemp/node-get-amd-module-type.git"},"keywords":["module","type","amd","factory","form"],"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com"},"license":"MIT","bugs":{"url":"https://github.com/mrjoelkemp/node-get-amd-module-type/issues"},"homepage":"https://github.com/mrjoelkemp/node-get-amd-module-type","devDependencies":{"mocha":"~2.0.1"},"dependencies":{"ast-module-types":"~2.3.1","node-source-walk":"~3.0.0"},"gitHead":"e3714ab13e7f60569a49cf5b6f3f1c4c7e147a42","_id":"get-amd-module-type@2.0.4","_shasum":"8a23764d81d45e0208059a14302e904a657ad911","_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":"8a23764d81d45e0208059a14302e904a657ad911","size":2782,"noattachment":false,"key":"/get-amd-module-type/-/get-amd-module-type-2.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/get-amd-module-type/download/get-amd-module-type-2.0.4.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/get-amd-module-type-2.0.4.tgz_1466043053510_0.41614428581669927"},"publish_time":1466043055856,"_cnpm_publish_time":1466043055856,"_hasShrinkwrap":false},"2.0.3":{"name":"get-amd-module-type","version":"2.0.3","description":"Get the type of AMD module used for an AST node or within a file","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha test/test.js"},"repository":{"type":"git","url":"https://github.com/mrjoelkemp/node-get-amd-module-type.git"},"keywords":["module","type","amd","factory","form"],"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com"},"license":"MIT","bugs":{"url":"https://github.com/mrjoelkemp/node-get-amd-module-type/issues"},"homepage":"https://github.com/mrjoelkemp/node-get-amd-module-type","devDependencies":{"mocha":"~2.0.1"},"dependencies":{"ast-module-types":"~2.0.1","node-source-walk":"~1.1.2"},"gitHead":"744abd3a031550b7d186ce4fab3aa3601aa90182","_id":"get-amd-module-type@2.0.3","_shasum":"2d7a632ab11cb9b877792f16ac3b27db186aa04f","_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":"2d7a632ab11cb9b877792f16ac3b27db186aa04f","size":2773,"noattachment":false,"key":"/get-amd-module-type/-/get-amd-module-type-2.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/get-amd-module-type/download/get-amd-module-type-2.0.3.tgz"},"publish_time":1425090465189,"_cnpm_publish_time":1425090465189,"_hasShrinkwrap":false},"2.0.2":{"name":"get-amd-module-type","version":"2.0.2","description":"Get the type of AMD module used for an AST node or within a file","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha test/test.js"},"repository":{"type":"git","url":"https://github.com/mrjoelkemp/node-get-amd-module-type.git"},"keywords":["module","type","amd"],"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com"},"license":"MIT","bugs":{"url":"https://github.com/mrjoelkemp/node-get-amd-module-type/issues"},"homepage":"https://github.com/mrjoelkemp/node-get-amd-module-type","devDependencies":{"mocha":"~2.0.1"},"dependencies":{"ast-module-types":"~2.0.1","node-source-walk":"~1.1.2"},"gitHead":"ba59161a5a4e8c90d7528ec6450ef8040b690843","_id":"get-amd-module-type@2.0.2","_shasum":"11e2182793d1f454ceb29bad4bd9c82abcb0bb0d","_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":"11e2182793d1f454ceb29bad4bd9c82abcb0bb0d","size":2599,"noattachment":false,"key":"/get-amd-module-type/-/get-amd-module-type-2.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/get-amd-module-type/download/get-amd-module-type-2.0.2.tgz"},"publish_time":1415459159519,"_cnpm_publish_time":1415459159519,"_hasShrinkwrap":false},"2.0.1":{"name":"get-amd-module-type","version":"2.0.1","description":"Get the type of AMD module used for an AST node or within a file","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha test/test.js"},"repository":{"type":"git","url":"https://github.com/mrjoelkemp/node-get-amd-module-type.git"},"keywords":["module","type","amd"],"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com"},"license":"MIT","bugs":{"url":"https://github.com/mrjoelkemp/node-get-amd-module-type/issues"},"homepage":"https://github.com/mrjoelkemp/node-get-amd-module-type","devDependencies":{"mocha":"~2.0.1"},"dependencies":{"ast-module-types":"~2.0.1","node-source-walk":"~1.1.2"},"gitHead":"d7397e76f7870c61bff5493622f9b0a288e5a492","_id":"get-amd-module-type@2.0.1","_shasum":"eedb35ca55e1cbe1d95815d546310a07e4ffbcba","_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":"eedb35ca55e1cbe1d95815d546310a07e4ffbcba","size":2503,"noattachment":false,"key":"/get-amd-module-type/-/get-amd-module-type-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/get-amd-module-type/download/get-amd-module-type-2.0.1.tgz"},"publish_time":1415418674595,"_cnpm_publish_time":1415418674595,"_hasShrinkwrap":false},"2.0.0":{"name":"get-amd-module-type","version":"2.0.0","description":"Get the type of AMD module used for an AST node or within a file","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha test/test.js"},"repository":{"type":"git","url":"https://github.com/mrjoelkemp/node-get-amd-module-type.git"},"keywords":["module","type","amd"],"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com"},"license":"MIT","bugs":{"url":"https://github.com/mrjoelkemp/node-get-amd-module-type/issues"},"homepage":"https://github.com/mrjoelkemp/node-get-amd-module-type","devDependencies":{"mocha":"~2.0.1"},"dependencies":{"ast-module-types":"~2.0.1","node-source-walk":"~1.1.2"},"gitHead":"a3f3a0bbe583e815e243b1886eac3887e01b9c0a","_id":"get-amd-module-type@2.0.0","_shasum":"d001d132206b32a6281b9f8561884e1ec0589513","_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":"d001d132206b32a6281b9f8561884e1ec0589513","size":2473,"noattachment":false,"key":"/get-amd-module-type/-/get-amd-module-type-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/get-amd-module-type/download/get-amd-module-type-2.0.0.tgz"},"publish_time":1414864364371,"_cnpm_publish_time":1414864364371,"_hasShrinkwrap":false},"1.0.0":{"name":"get-amd-module-type","version":"1.0.0","description":"Get the type of AMD module used for an AST node or within a file","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha test/test.js"},"repository":{"type":"git","url":"https://github.com/mrjoelkemp/node-get-amd-module-type.git"},"keywords":["module","type","amd"],"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com"},"license":"MIT","bugs":{"url":"https://github.com/mrjoelkemp/node-get-amd-module-type/issues"},"homepage":"https://github.com/mrjoelkemp/node-get-amd-module-type","devDependencies":{"esprima":"~1.2.2","mocha":"~2.0.1"},"dependencies":{"ast-module-types":"~2.0.1","esprima":"~1.2.2","node-source-walk":"~1.1.2"},"gitHead":"6f14cefee3ac3dbf3854d0ec8dd3321b82d29d08","_id":"get-amd-module-type@1.0.0","_shasum":"f48efa5b2bdf43214602044543df46ba10d0339a","_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":"f48efa5b2bdf43214602044543df46ba10d0339a","size":1840,"noattachment":false,"key":"/get-amd-module-type/-/get-amd-module-type-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/get-amd-module-type/download/get-amd-module-type-1.0.0.tgz"},"publish_time":1414273606706,"_cnpm_publish_time":1414273606706,"_hasShrinkwrap":false}},"readme":"# get-amd-module-type\n\n[![CI](https://img.shields.io/github/actions/workflow/status/dependents/node-get-amd-module-type/ci.yml?branch=main&label=CI&logo=github)](https://github.com/dependents/node-get-amd-module-type/actions/workflows/ci.yml?query=branch%3Amain)\n[![npm version](https://img.shields.io/npm/v/get-amd-module-type?logo=npm&logoColor=fff)](https://www.npmjs.com/package/get-amd-module-type)\n[![npm downloads](https://img.shields.io/npm/dm/get-amd-module-type)](https://www.npmjs.com/package/get-amd-module-type)\n\n> Get the type of an AMD module used for an AST node or within a file\n\n```sh\nnpm install get-amd-module-type\n```\n\n## Usage\n\n```js\nconst getType = require('get-amd-module-type');\n\n// Async\ngetType('my/file.js', (error, type) => {\n  if (error) throw error;\n  console.log(type);\n});\n\nlet type;\n\n// Sync\ntype = getType.sync('my/file.js');\n\n// From source code\ntype = getType.fromSource('define() {}');\n\n// From an AST node\ntype = getType.fromAST(node);\n```\n\nThe returned `type` will be any of the following:\n\n* `'named'`: `define('name', [deps], func)`\n* `'deps'`: `define([deps], func)`\n* `'rem'`: `define(function(require, exports, module){});`\n* `'factory'`: `define(function(require){})`\n* `'nodeps'`: `define({})`\n* `'driver'`: `require([deps], function)`\n\n## License\n\n[MIT](LICENSE)\n","_attachments":{},"homepage":"https://github.com/dependents/node-get-amd-module-type","bugs":{"url":"https://github.com/dependents/node-get-amd-module-type/issues"},"license":"MIT"}