multili
Function to remove indentation in multi-lines template literals (string) based on the shortest indented line.
Installation
$ npm install multili
Usage
// Will produce/*This is a multi-lines string*/ // Will produce/*This is amulti-lines string*/ // Will produce/* This is amulti-lines string*/
You can also pass an array of lines instead of a string; in this case, the return value will also be an array.
// Will produce/*[ "This is a", " milti-line", " string",]*/
CONTRIBUTING
- ⇄ Pull/Merge requests and ★ Stars are always welcome.
- For bugs and feature requests, please create an issue.
- Pull/Merge requests must be accompanied by passing automated tests (
$ npm test
).