$ cnpm install @putout/plugin-montag
Format multiline strings using tagged templates, instead of putting all lines into an array and joining to a string.
(c) Montag
????Putout plugin adds ability to apply Montag.
npm i @putout/plugin-apply-montag
{
"rules": {
"montag/apply": "on",
"montag/declare": "on"
}
}
const a = [
'hello',
'world',
].join('\n');
const a = montag`
hello
world
`;
const a = montag`
hello
world
`;
import montag from 'montag';
const a = montag`
hello
world
`;
MIT
Copyright 2013 - present © cnpmjs.org | Home |