Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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