{"_id":"babel-identifiers","_rev":"3950588","name":"babel-identifiers","description":"Classify Babel identifiers","dist-tags":{"latest":"2.0.1"},"maintainers":[{"name":"thejameskyle","email":"me@thejameskyle.com"}],"time":{"modified":"2025-09-01T01:37:07.000Z","created":"2017-06-06T01:41:52.075Z","2.0.1":"2020-04-16T02:37:34.101Z","2.0.0":"2018-02-28T22:19:06.370Z","1.1.2":"2018-01-19T04:26:35.365Z","1.1.1":"2017-08-31T00:10:44.254Z","1.1.0":"2017-08-30T09:50:42.406Z","1.0.0":"2017-06-06T01:41:52.075Z"},"users":{},"author":{"name":"James Kyle","email":"me@thejameskyle.com"},"repository":{"type":"git","url":"git+https://github.com/babel-utils/babel-identifiers.git"},"versions":{"2.0.1":{"name":"babel-identifiers","version":"2.0.1","description":"Classify Babel identifiers","main":"index.js","repository":{"type":"git","url":"git+https://github.com/babel-utils/babel-identifiers.git"},"author":{"name":"James Kyle","email":"me@thejameskyle.com"},"license":"MIT","scripts":{"test":"jest"},"devDependencies":{"@babel/core":"^7.0.0-beta.40","ast-pretty-print":"^2.0.1","babylon-options":"^2.0.1","flow-bin":"^0.47.0","jest":"^20.0.4","jest-in-case":"^1.0.1"},"dependencies":{"babel-type-scopes":"^1.0.0"},"gitHead":"ffa951b00038cdb186bdd39938f1ea572a689479","bugs":{"url":"https://github.com/babel-utils/babel-identifiers/issues"},"homepage":"https://github.com/babel-utils/babel-identifiers#readme","_id":"babel-identifiers@2.0.1","_nodeVersion":"13.3.0","_npmVersion":"6.13.2","dist":{"shasum":"dae1203f87f5f246f5a54642dbb5d0c6c4fb9dad","size":1879,"noattachment":false,"key":"/babel-identifiers/-/babel-identifiers-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-identifiers/download/babel-identifiers-2.0.1.tgz"},"maintainers":[{"name":"thejameskyle","email":"me@thejameskyle.com"}],"_npmUser":{"name":"thejameskyle","email":"me@thejameskyle.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-identifiers_2.0.1_1587004653900_0.3983714355571035"},"_hasShrinkwrap":false,"publish_time":1587004654101,"_cnpm_publish_time":1587004654101,"_cnpmcore_publish_time":"2021-12-16T18:38:35.158Z"},"2.0.0":{"name":"babel-identifiers","version":"2.0.0","description":"Classify Babel identifiers","main":"index.js","repository":{"type":"git","url":"git+https://github.com/babel-utils/babel-identifiers.git"},"author":{"name":"James Kyle","email":"me@thejameskyle.com"},"license":"MIT","files":["index.js"],"scripts":{"test":"jest"},"devDependencies":{"@babel/core":"^7.0.0-beta.40","ast-pretty-print":"^2.0.1","babylon-options":"^2.0.1","flow-bin":"^0.47.0","jest":"^20.0.4","jest-in-case":"^1.0.1"},"dependencies":{"babel-type-scopes":"^1.0.0"},"gitHead":"96e0fc4126acaf1cecf9ad89d70a001d22f72380","bugs":{"url":"https://github.com/babel-utils/babel-identifiers/issues"},"homepage":"https://github.com/babel-utils/babel-identifiers#readme","_id":"babel-identifiers@2.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"thejameskyle","email":"me@thejameskyle.com"},"dist":{"shasum":"b814d06289ff87ef94b507a7f6e8d6f61a2b637b","size":1916,"noattachment":false,"key":"/babel-identifiers/-/babel-identifiers-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-identifiers/download/babel-identifiers-2.0.0.tgz"},"maintainers":[{"name":"thejameskyle","email":"me@thejameskyle.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-identifiers_2.0.0_1519856346274_0.5087747306167159"},"_hasShrinkwrap":false,"publish_time":1519856346370,"_cnpm_publish_time":1519856346370,"_cnpmcore_publish_time":"2021-12-16T18:38:35.546Z"},"1.1.2":{"name":"babel-identifiers","version":"1.1.2","description":"Classify Babel identifiers","main":"index.js","repository":{"type":"git","url":"git+https://github.com/babel-utils/babel-identifiers.git"},"author":{"name":"James Kyle","email":"me@thejameskyle.com"},"license":"MIT","files":["index.js"],"scripts":{"test":"jest"},"devDependencies":{"babel-core":"^7.0.0-alpha.19","babylon-options":"^1.1.2","flow-bin":"^0.47.0","jest":"^20.0.4"},"gitHead":"f158164c2e6939cdbfd8620df1c06871b3a63e41","bugs":{"url":"https://github.com/babel-utils/babel-identifiers/issues"},"homepage":"https://github.com/babel-utils/babel-identifiers#readme","_id":"babel-identifiers@1.1.2","_shasum":"fed5d526c88b1c669ba2dbd1148eaed4357aea42","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"thejameskyle","email":"me@thejameskyle.com"},"dist":{"shasum":"fed5d526c88b1c669ba2dbd1148eaed4357aea42","size":2004,"noattachment":false,"key":"/babel-identifiers/-/babel-identifiers-1.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-identifiers/download/babel-identifiers-1.1.2.tgz"},"maintainers":[{"name":"thejameskyle","email":"me@thejameskyle.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-identifiers-1.1.2.tgz_1516335995216_0.07443292764946818"},"directories":{},"publish_time":1516335995365,"_hasShrinkwrap":false,"_cnpm_publish_time":1516335995365,"_cnpmcore_publish_time":"2021-12-16T18:38:35.730Z"},"1.1.1":{"name":"babel-identifiers","version":"1.1.1","description":"Classify Babel identifiers","main":"index.js","repository":{"type":"git","url":"git+https://github.com/babel-utils/babel-identifiers.git"},"author":{"name":"James Kyle","email":"me@thejameskyle.com"},"license":"MIT","files":["index.js"],"scripts":{"test":"jest"},"devDependencies":{"babel-core":"^7.0.0-alpha.19","babylon-options":"^1.1.2","flow-bin":"^0.47.0","jest":"^20.0.4"},"gitHead":"79add000a2f1da9f0e2e2eedcbf4726cf55aef36","bugs":{"url":"https://github.com/babel-utils/babel-identifiers/issues"},"homepage":"https://github.com/babel-utils/babel-identifiers#readme","_id":"babel-identifiers@1.1.1","_shasum":"9ff5a8976c2079cae530c2b03d6747094724f8e9","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"thejameskyle","email":"me@thejameskyle.com"},"dist":{"shasum":"9ff5a8976c2079cae530c2b03d6747094724f8e9","size":1968,"noattachment":false,"key":"/babel-identifiers/-/babel-identifiers-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-identifiers/download/babel-identifiers-1.1.1.tgz"},"maintainers":[{"name":"thejameskyle","email":"me@thejameskyle.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-identifiers-1.1.1.tgz_1504138244174_0.11253939289599657"},"directories":{},"publish_time":1504138244254,"_hasShrinkwrap":false,"_cnpm_publish_time":1504138244254,"_cnpmcore_publish_time":"2021-12-16T18:38:35.954Z"},"1.1.0":{"name":"babel-identifiers","version":"1.1.0","description":"Classify Babel identifiers","main":"index.js","repository":{"type":"git","url":"git+https://github.com/babel-utils/babel-identifiers.git"},"author":{"name":"James Kyle","email":"me@thejameskyle.com"},"license":"MIT","files":["index.js"],"scripts":{"test":"jest"},"devDependencies":{"babel-core":"^7.0.0-alpha.19","babylon-options":"^1.1.2","flow-bin":"^0.47.0","jest":"^20.0.4"},"gitHead":"67c9c1884848eb64927379ee046020140ea11b3c","bugs":{"url":"https://github.com/babel-utils/babel-identifiers/issues"},"homepage":"https://github.com/babel-utils/babel-identifiers#readme","_id":"babel-identifiers@1.1.0","_shasum":"2631bac0463605aa1a8b7c05d36719fe6290644f","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"thejameskyle","email":"me@thejameskyle.com"},"dist":{"shasum":"2631bac0463605aa1a8b7c05d36719fe6290644f","size":1964,"noattachment":false,"key":"/babel-identifiers/-/babel-identifiers-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-identifiers/download/babel-identifiers-1.1.0.tgz"},"maintainers":[{"name":"thejameskyle","email":"me@thejameskyle.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-identifiers-1.1.0.tgz_1504086642327_0.4704184727743268"},"directories":{},"publish_time":1504086642406,"_hasShrinkwrap":false,"_cnpm_publish_time":1504086642406,"_cnpmcore_publish_time":"2021-12-16T18:38:36.190Z"},"1.0.0":{"name":"babel-identifiers","version":"1.0.0","description":"Classify Babel identifiers","main":"index.js","repository":{"type":"git","url":"git+https://github.com/babel-utils/babel-identifiers.git"},"author":{"name":"James Kyle","email":"me@thejameskyle.com"},"license":"MIT","files":[],"scripts":{"test":"jest"},"devDependencies":{"ast-pretty-print":"^1.3.0","babel-plugin-tester":"^3.0.0","babylon-options":"^1.1.2","flow-bin":"^0.47.0","jest":"^20.0.4"},"gitHead":"32683d1e42cb176262424995297776f1ca49c844","bugs":{"url":"https://github.com/babel-utils/babel-identifiers/issues"},"homepage":"https://github.com/babel-utils/babel-identifiers#readme","_id":"babel-identifiers@1.0.0","_shasum":"71aeb1ae97190ec3c4edb3ab11609f3bd1135ab8","_from":".","_npmVersion":"4.2.0","_nodeVersion":"8.0.0","_npmUser":{"name":"thejameskyle","email":"me@thejameskyle.com"},"dist":{"shasum":"71aeb1ae97190ec3c4edb3ab11609f3bd1135ab8","size":1897,"noattachment":false,"key":"/babel-identifiers/-/babel-identifiers-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-identifiers/download/babel-identifiers-1.0.0.tgz"},"maintainers":[{"name":"thejameskyle","email":"me@thejameskyle.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-identifiers-1.0.0.tgz_1496713312003_0.05707865580916405"},"directories":{},"publish_time":1496713312075,"_hasShrinkwrap":false,"_cnpm_publish_time":1496713312075,"_cnpmcore_publish_time":"2021-12-16T18:38:36.401Z"}},"readme":"# babel-identifiers\n\n> Classify Babel identifiers\n\n### Installation\n\n```sh\nyarn add babel-identifiers\n```\n\n### Usage\n\nIdentifier nodes fall into one of three kinds:\n\n1. \"binding\" - `let binding = ...`\n2. \"reference\" - `reference;`\n3. \"static\" - `a.static`\n\nAnd into one of four grammars:\n\n1. \"javascript\" - `let javascript = ...`\n1. \"jsx\" - `<jsx/>`\n2. \"flow\" - `({}: flow)`\n3. \"typescript\" - `enum typescript {}`\n\n```js\nimport {getIdentifierKind, getIdentifierGrammar} from 'babel-identifiers';\n\nisIdentifierLike(path); // true | false\ngetIdentifierKind(path); // \"binding\" | \"reference\" | \"static\"\ngetIdentifierGrammar(path); // \"javascript\" | \"flow\" | \"typescript\"\n```\n","_attachments":{},"homepage":"https://github.com/babel-utils/babel-identifiers#readme","bugs":{"url":"https://github.com/babel-utils/babel-identifiers/issues"},"license":"MIT"}