Skip to content

SEAPUNK/multitrim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

multitrim

multiline string trimming

import multitrim from 'multitrim'

const tpl = `
  indentation, yeah!
`

tpl /*\n  indentation, yeah!\n*/

multitrim(tpl) /*indentation, yeah!*/

// loose mode: don't do String.trim() before doing the multitrim
multitrim(tpl, true) /*\nindentation, yeah!\n*/

About

multiline string trimming

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published