Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

babel-plugin-unexport

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-unexport - npm Package Compare versions

Comparing version
1.0.3
to
1.0.4
+1
-1
package.json
{
"name": "babel-plugin-unexport",
"version": "1.0.3",
"version": "1.0.4",
"description": "a babel-plugin to transform l-template tags.",

@@ -5,0 +5,0 @@ "author": "Arash Shakery <arash.shakery@gmail.com> (arash16.com)",

# babel-plugin-unexport
a babel-plugin to remove export directives
> This plugin allows Babel to remove export directives, declaration will remain.
## Example
**In**
```javascript
export function fname() {
}
```
**Out**
```javascript
function fname() {
}
```
## Installation
```sh
npm install --save-dev babel-plugin-unexport
```
## Usage
### Via `.babelrc` (Recommended)
**.babelrc**
```json
{
"plugins": ["unexport"]
}
```
### Via CLI
```sh
babel --plugins unexport script.js
```
### Via Node API
```javascript
require("babel-core").transform("code", {
plugins: ["unexport"]
});
```