Socket
Socket
Sign inDemoInstall

babel-plugin-extract-import-names

Package Overview
Dependencies
Maintainers
4
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-extract-import-names - npm Package Compare versions

Comparing version 2.0.0-next.8 to 2.0.0

30

package.json
{
"bugs": "https://github.com/mdx-js/mdx/issues",
"name": "babel-plugin-extract-import-names",
"version": "2.0.0-next.8",
"description": "Extract import names",
"repository": "mdx-js/mdx",
"homepage": "https://mdxjs.com",
"bugs": "https://github.com/mdx-js/mdx/issues",
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/unified"
},
"author": "John Otander <johnotander@gmail.com> (http://johnotander.com)",
"contributors": [
"JounQin <admin@1stg.me> (https://www.1stg.me)"
],
"license": "MIT",
"files": [
"index.js"
],
"keywords": [
"mdx",
"markdown",
"react",
"jsx",
"remark",
"babel"
],
"dependencies": {
"@babel/helper-plugin-utils": "7.10.4"
},
"gitHead": "e194fc1a61715549be10d56055ea4ad25533fcb1"
"version": "2.0.0"
}

@@ -1,37 +0,5 @@

# `babel-plugin-extract-import-names`
# babel-plugin-extract-import-names
Babel plugin that extracts all variable names from
import statements.Used by the [MDX](https://mdxjs.com)
pragma.
Deprecated: this package is no longer maintained.
## Installation
```sh
yarn add babel-plugin-extract-import-names
```
## Usage
```js
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
MDX v2 does not depend on Babel anymore and so this is no longer needed.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc