🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

babel-replace-variable-init

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
b

babel-replace-variable-init

Generate a babel plugin which replaces variable initializations

0.1.1
latest
62

Supply Chain Security

100

Vulnerability

59

Quality

76

Maintenance

100

License

Unpopular package

Quality

This package is not very popular.

Found 1 instance in 1 package

Version published
Weekly downloads
1
-80%
Maintainers
1
Weekly downloads
 
Created
Issues
0

babel-replace-variable-init NPM Version

Generate a babel plugin which replaces variable initializations

Usage

import babelReplaceVariableInit from 'babel-replace-variable-init';

export default babelReplaceVariable({
	variableName: ({types: t}) => t.stringLiteral('')
});

This will create a babel plugin which will replace the initialization of any variableName variable with an empty string.

FAQs

Package last updated on 02 Oct 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts