UNPKG

babel-plugin-remove-template-literals-whitespace

Version:
43 lines (27 loc) 1.29 kB
# babel-plugin-remove-template-literals-whitespace [![version](https://img.shields.io/npm/v/babel-plugin-remove-template-literals-whitespace.svg?style=flat)][npm] [![downloads](https://img.shields.io/npm/dt/babel-plugin-remove-template-literals-whitespace.svg?style=flat)][npm] [![license](https://img.shields.io/npm/l/babel-plugin-remove-template-literals-whitespace.svg?style=flat)][mit] [![paypal](https://img.shields.io/badge/donate-paypal-blue.svg?colorB=0070ba&style=flat)](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