untag
v1.0.1
Published
Normalized template literals
Downloads
6
Maintainers
Readme
untag
Normalized template literals
Features
- Removes empty first and last lines
- Removes unnecessary indents
Install
$ npm install untag
Usage
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.
`;
};