montag

1.2.1 • Public • Published

Montag License NPM version Dependency Status Build Status Coverage

“If you don’t want a house built, hide the nails and wood. If you don’t want a man unhappy politically, don’t give him two sides to a question to worry him; give him one. Better yet, give him none.”

Format multiline strings using tagged templates, instead of puting all lines into an array and joining to a string.

Install

npm i montag

How to use?

const montag = require('montag');

const str1 = montag`
    if (a > b)
        console.log(c);
`;

const str2 = [
    'if (a > b)',
    '    console.log(c)',
].join('\n');

str1 === str2;
// returns
true;

License

MIT

Package Sidebar

Install

npm i montag

Weekly Downloads

16,422

Version

1.2.1

License

MIT

Unpacked Size

4.89 kB

Total Files

4

Last publish

Collaborators

  • coderaiser