babel-replace-variable-init

0.1.1 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i babel-replace-variable-init

Weekly Downloads

1

Version

0.1.1

License

MIT

Unpacked Size

3.48 kB

Total Files

5

Last publish

Collaborators

  • coreyfarrell