dentist
Version:
NodeJS string dedenting module – make your template strings look nice!
30 lines (19 loc) • 758 B
Markdown
# dentist [](https://travis-ci.org/paperhive/dentist) [](https://codecov.io/github/paperhive/dentist?branch=master) [](https://www.npmjs.com/package/dentist)
NodeJS string dedenting module – make your template strings look nice!
## Documentation
```
npm install dentist
```
```javascript
import { dedent } from 'dentist';
const str = dedent(`
Hi, check out the following line:
it's indented!
Crazy!
`);
/* Now str contains the string without the leading indentation:
Hi, check out the following line:
it's indented!
Crazy!
*/
```