dentist
v1.0.3
Published
NodeJS string dedenting module – make your template strings look nice!
Downloads
21,254
Readme
dentist
NodeJS string dedenting module – make your template strings look nice!
Documentation
npm install dentist
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!
*/