babel-plugin-extract-import-names
Extract import names
Last updated 4 years ago by johno .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install babel-plugin-extract-import-names 
SYNC missed versions from official npm registry.

babel-plugin-extract-import-names

Babel plugin that extracts all variable names from import statements.Used by the MDX pragma.

Installation

yarn add babel-plugin-extract-import-names

Usage

const babel = require('@babel/core')

const BabelPluginExtractImportNames = require('babel-plugin-extract-import-names')

const jsx = `
import Foo from 'bar'
import { Bar } from 'baz'
`

const plugin = new BabelPluginExtractImportNames()

const result = babel.transform(jsx, {
  configFile: false,
  plugins: [plugin.plugin]
})

console.log(plugin.state.names)

License

MIT

Current Tags

  • 1.6.8-ci.4                                ...           ci (4 years ago)
  • 2.0.0                                ...           latest (a month ago)
  • 2.0.0-next.8                                ...           next (4 years ago)

59 Versions

  • 2.0.0 [deprecated]           ...           a month ago
  • 1.6.22                                ...           4 years ago
  • 1.6.21                                ...           4 years ago
  • 1.6.20                                ...           4 years ago
  • 1.6.19                                ...           4 years ago
  • 2.0.0-next.8                                ...           4 years ago
  • 1.6.18                                ...           4 years ago
  • 1.6.17                                ...           4 years ago
  • 2.0.0-next.7                                ...           4 years ago
  • 1.6.16                                ...           4 years ago
  • 1.6.15                                ...           4 years ago
  • 2.0.0-next.6                                ...           4 years ago
  • 2.0.0-next.5                                ...           4 years ago
  • 1.6.14                                ...           4 years ago
  • 2.0.0-next.4                                ...           4 years ago
  • 1.6.13                                ...           4 years ago
  • 1.6.12                                ...           4 years ago
  • 2.0.0-next.3                                ...           4 years ago
  • 1.6.11                                ...           4 years ago
  • 1.6.10                                ...           4 years ago
  • 1.6.9                                ...           4 years ago
  • 1.6.8                                ...           4 years ago
  • 1.6.8-ci.4                                ...           4 years ago
  • 1.6.7                                ...           4 years ago
  • 1.6.6                                ...           4 years ago
  • 1.6.5                                ...           4 years ago
  • 2.0.0-next.1                                ...           4 years ago
  • 1.6.4                                ...           4 years ago
  • 2.0.0-next.0                                ...           4 years ago
  • 1.6.3                                ...           4 years ago
  • 1.6.2                                ...           4 years ago
  • 1.6.1                                ...           5 years ago
  • 1.6.0                                ...           5 years ago
  • 1.5.9                                ...           5 years ago
  • 1.5.8                                ...           5 years ago
  • 1.5.8-alpha.0                                ...           5 years ago
  • 1.5.7                                ...           5 years ago
  • 1.5.7-alpha.0                                ...           5 years ago
  • 1.5.6                                ...           5 years ago
  • 1.5.6-alpha.0                                ...           5 years ago
  • 1.5.6-ci.0                                ...           5 years ago
  • 1.5.5                                ...           5 years ago
  • 1.5.4                                ...           5 years ago
  • 1.5.3                                ...           5 years ago
  • 1.5.2                                ...           5 years ago
  • 1.5.1                                ...           5 years ago
  • 1.5.0                                ...           5 years ago
  • 1.4.5                                ...           5 years ago
  • 1.4.4                                ...           5 years ago
  • 1.4.3                                ...           5 years ago
  • 1.4.2                                ...           5 years ago
  • 1.4.1                                ...           5 years ago
  • 1.4.0                                ...           5 years ago
  • 1.3.2                                ...           5 years ago
  • 1.3.1                                ...           5 years ago
  • 1.3.0                                ...           5 years ago
  • 1.2.2                                ...           5 years ago
  • 1.2.1                                ...           5 years ago
  • 1.2.0                                ...           5 years ago
Downloads
Total 1
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (1)
Dev Dependencies (0)
None
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE