JSPM

babel-identifiers

1.1.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 15091
  • Score
    100M100P100Q178334F
  • License MIT

Classify Babel identifiers

Package Exports

  • babel-identifiers

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (babel-identifiers) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

babel-identifiers

Classify Babel identifiers

Installation

yarn add babel-identifiers

Usage

Identifier nodes fall into one of three categories:

  1. "binding" - let binding = ...
  2. "reference" - reference;
  3. "static" - a.static
import {getIdentifierKind} from 'babel-identifiers';

getIdentifierKind(path); // "binding" | "reference" | "static"

This should work for all identifiers, even those in Flow or TypeScript.