dentist

1.0.3 • Public • Published

dentist travis-ci codecov.io npm

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!
*/

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.3
    7,440
    • latest

Version History

Package Sidebar

Install

npm i dentist

Weekly Downloads

7,440

Version

1.0.3

License

MIT

Last publish

Collaborators

  • andrenarchy
  • jengeb