Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oliverfindl/babel-plugin-remove-template-literals-whitespace
Babel plugin for whitespace removal from template literals.
https://github.com/oliverfindl/babel-plugin-remove-template-literals-whitespace
babel babel-plugin javascript remove-template-literals-whitespace remove-whitespace template-literals
Last synced: 10 days ago
JSON representation
Babel plugin for whitespace removal from template literals.
- Host: GitHub
- URL: https://github.com/oliverfindl/babel-plugin-remove-template-literals-whitespace
- Owner: oliverfindl
- License: mit
- Created: 2019-11-11T19:09:24.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-05-16T07:50:52.000Z (over 3 years ago)
- Last Synced: 2024-09-19T10:08:52.411Z (about 2 months ago)
- Topics: babel, babel-plugin, javascript, remove-template-literals-whitespace, remove-whitespace, template-literals
- Language: JavaScript
- Size: 13.7 KB
- Stars: 9
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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