Skip to content

NodeJS string dedenting module – make your template strings look nice!

License

Notifications You must be signed in to change notification settings

paperhive/dentist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

NodeJS string dedenting module – make your template strings look nice!

Resources

License

Stars

Watchers

Forks

Packages

No packages published