{"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":{"integrity":"sha512-99Q7COuACPfVt18zH9N4VAMyb81S6TUgJm2NgV6ERtkh9VIkAaByZkW530wl3lLN5KTtSrK9jVLxYsoP5hQKsw==","shasum":"bb334662fa04427018c937774570de495845c288","tarball":"http://registry-npm.ywwl.com/get-amd-module-type/download/get-amd-module-type-3.0.0.tgz","fileCount":3,"unpackedSize":4100,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbjWWtCRA9TVsSAnZWagAAsAoP/3DkEDxB0e03t4YRJZXP\nkx5Dgzu/aOSChYhB3rDjFGmDf0KN3DtvuYSMkRVsRivHo13ba6fYzXUsaLXH\nOk/RDlXPrizh6EyfXal7FsI/QeQZyJre5iAAX4ILS7rZmN7ilKmuCGoi9AW7\nMuyRyy5UIaZ0be8LlnZFD+Dn6ufQFbnb/Vs1bRfUvn5+fV/Z5h4aRZKgcYIg\nUX4lPZ3GfJ87DUGi0s8DKkLSaLuFNc+VNRA4MRQ9kR03lO9cJkWb/YZZvVyu\nSKBO330i15gl1UrFxXQ7h1o6XlmBR5VlWY/xNWrBvpj+hwv8ZiqZUpLpPXpT\n1vgiqHMbKRcAlpUcXb2JNhXy2OlRIkWrdeBjQV8Dy6cvUR76lnftak8bbXH7\n10uCa+i21O8QFzRLC0XAB4AUlLqMfVXnJ6hJn2j8eDugDBrKrLhCrFJScYMO\ni4/tjSZe9OzhJh2f/iL8NqtaqHKGfPHzDw7kbwIdoE2PCjhK4+DuzDPpOcWd\nqg2ZGtRZJpmvylBjuhEiLn+fWBwkLeWikZitNMFfOxS77rxYRlS59NQhxHWa\n34e1kZTKjq+Lt2/6dZWMX22abQXrRNjYIQa3AaOCKwmz5/HUr+34AFFh+5tf\nDMkVDzZGHYlRUP5H3VAjnoO0D/TAzzd90b8w3lyzZLjBZQpcXVm89V/J0ugw\ns+/r\r\n=ODf5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDXt2vKloVDsAqtKp/jP87vawui5uSbzgrv138cEosckgIgLw630eGlhDxm/1xCoLlVl4pYTi7g1meExtnKy+Gtm+w="}],"size":1609,"noattachment":false,"key":"/get-amd-module-type/-/get-amd-module-type-3.0.0.tgz"},"maintainers":[{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/get-amd-module-type_3.0.0_1535993259608_0.31026087394589386"},"_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","publish_time":1535993259746,"_cnpm_publish_time":1535993259746,"dist-tags":{"latest":"7.0.0"}}