babel-plugin-unexport
Advanced tools
+1
-1
| { | ||
| "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)", |
+50
-1
| # 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"] | ||
| }); | ||
| ``` |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
5209
10.5%52
1633.33%