bzz
Template strings formatter for avoiding indentation side effect. Format string according minimum found identation and passed gitter.
Installation
npm install --save bzz
API
bzz(templateString, [defaultGitter]);
defaultGitter set a minimum identation for passed string. Default: 0
Usage examples
const bzz = ; // the fist string's line will be removedconst str = ; // <-- the last line will be removed too console;
Output:
Hello
world
const bzz = ; const str = ; console;
Output:
Meow
Moo
Arf-arf