babel-plugin-remove-template-literals-whitespace
Version:
Babel plugin for whitespace removal from template literals.
43 lines (27 loc) • 1.29 kB
Markdown
# babel-plugin-remove-template-literals-whitespace
[][npm]
[][npm]
[][mit]
[](https://paypal.me/oliverfindl)
Babel plugin for whitespace removal from template literals.
> User-defined function for whitespace removal can be defined via `options.fn`.
## Install
Using npm:
```bash
$ npm install babel-plugin-remove-template-literals-whitespace --save-dev
```
or using yarn:
```bash
$ yarn add babel-plugin-remove-template-literals-whitespace --dev
```
### Options
* **`options.fn`:**
User-defined function for whitespace removal (or whatever user wants to remove) from template literals.
* **`options.verbose`:**
Enables verbose mode, that will log template literals before and after whitespace removal process.
## License
[MIT][mit]
[mit]: https://opensource.org/licenses/MIT
[npm]: https://www.npmjs.com/package/babel-plugin-remove-template-literals-whitespace