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
- Host: GitHub
- URL: https://github.com/herber/untag
- Owner: herber
- License: mit
- Created: 2017-12-30T12:06:45.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-12-30T12:09:37.000Z (over 7 years ago)
- Last Synced: 2025-03-27T14:51:39.387Z (2 months ago)
- Topics: normalize, tagged-template-literals, template-literals
- Language: JavaScript
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# untag [](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)