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

https://github.com/herber/untag

👔 Normalized template literals
https://github.com/herber/untag

normalize tagged-template-literals template-literals

Last synced: about 2 months ago
JSON representation

👔 Normalized template literals

Awesome Lists containing this project

README

        

# untag [![Build Status](https://travis-ci.org/herber/untag.svg?branch=master)](https://travis-ci.org/herber/untag)

> Normalized template literals

## Features
- Removes empty first and last lines
- Removes unnecessary indents

## Install
```
$ npm install untag
```

## Usage
```js
const untag = require('untag');

const scope = () => {
return untag`
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Nulla dolor odio, dignissim id auctor eu, pellentesque eget metus.
Maecenas nec suscipit neque, ac faucibus nulla.
Nulla molestie vitae nisi eu pretium.
`;
};
```

## License

MIT © [](http://tobihrbr.com)