{"_id":"montag","_rev":"4132814","name":"montag","description":"format multiline strings using tagged templates, instead of puting all lines into an array and joining to a string","dist-tags":{"latest":"1.2.1"},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"time":{"modified":"2026-03-01T18:40:10.000Z","created":"2020-05-07T13:25:35.319Z","1.2.1":"2021-08-16T14:14:56.701Z","1.2.0":"2021-01-21T16:16:37.342Z","1.1.0":"2020-12-24T17:32:50.312Z","1.0.0":"2020-05-07T13:25:35.319Z"},"users":{},"author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"http://coderaiser.github.io/"},"repository":{"type":"git","url":"git://github.com/coderaiser/montag.git"},"versions":{"1.2.1":{"name":"montag","version":"1.2.1","description":"format multiline strings using tagged templates, instead of puting all lines into an array and joining to a string","main":"./lib/montag.js","exports":"./lib/montag.js","scripts":{"test":"madrun test","coverage":"madrun coverage","lint":"madrun lint","fix:lint":"madrun fix:lint","report":"madrun report","watcher":"madrun watcher","watch:test":"madrun watch:test","watch:lint":"madrun watch:lint","watch:tape":"madrun watch:tape","watch:coverage:base":"madrun watch:coverage:base","watch:coverage:tape":"madrun watch:coverage:tape","watch:coverage":"madrun watch:coverage"},"repository":{"type":"git","url":"git://github.com/coderaiser/montag.git"},"keywords":["tag","literal","join","template","array"],"author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"http://coderaiser.github.io/"},"license":"MIT","bugs":{"url":"https://github.com/coderaiser/montag/issues"},"homepage":"https://github.com/coderaiser/montag","devDependencies":{"c8":"^7.8.0","eslint":"^8.0.0-beta.0","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^9.0.2","madrun":"^8.1.0","mock-require":"^3.0.3","nodemon":"^2.0.2","putout":"^18.14.0","supertape":"^5.6.0"},"dependencies":{},"publishConfig":{"access":"public"},"gitHead":"00fe1a901f81750d43f9058f803c14c948a9d69f","_id":"montag@1.2.1","_nodeVersion":"16.6.2","_npmVersion":"7.12.0","dist":{"shasum":"2a7a56a623ab0427434aa3e69d9c3d35afa23460","size":1976,"noattachment":false,"key":"/montag/-/montag-1.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/montag/download/montag-1.2.1.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/montag_1.2.1_1629123296586_0.03883931308759392"},"_hasShrinkwrap":false,"publish_time":1629123296701,"_cnpm_publish_time":1629123296701,"_cnpmcore_publish_time":"2021-12-16T16:42:44.533Z"},"1.2.0":{"name":"montag","version":"1.2.0","description":"format multiline strings using tagged templates, instead of puting all lines into an array and joining to a string","main":"./lib/montag.js","exports":"./lib/montag.js","scripts":{"test":"madrun test","coverage":"madrun coverage","lint":"madrun lint","fix:lint":"madrun fix:lint","report":"madrun report","watcher":"madrun watcher","watch:test":"madrun watch:test","watch:lint":"madrun watch:lint","watch:tape":"madrun watch:tape","watch:coverage:base":"madrun watch:coverage:base","watch:coverage:tape":"madrun watch:coverage:tape","watch:coverage":"madrun watch:coverage"},"repository":{"type":"git","url":"git://github.com/coderaiser/montag.git"},"keywords":["tag","literal","join","template","array"],"author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"http://coderaiser.github.io/"},"license":"MIT","bugs":{"url":"https://github.com/coderaiser/montag/issues"},"homepage":"https://github.com/coderaiser/montag","devDependencies":{"coveralls":"^3.0.0","eslint":"^7.0.0","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^6.11.0","madrun":"^8.1.0","mock-require":"^3.0.3","nodemon":"^2.0.2","nyc":"^15.0.0","putout":"^13.8.0","supertape":"^4.1.0"},"dependencies":{},"publishConfig":{"access":"public"},"gitHead":"37d105fa69de00fdebb5749825407d87953770df","_id":"montag@1.2.0","_nodeVersion":"15.6.0","_npmVersion":"6.14.7","dist":{"shasum":"d721325cca7cddd4047be98bcb4edc067e570660","size":1933,"noattachment":false,"key":"/montag/-/montag-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/montag/download/montag-1.2.0.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/montag_1.2.0_1611245797224_0.17671949953161703"},"_hasShrinkwrap":false,"publish_time":1611245797342,"_cnpm_publish_time":1611245797342,"_cnpmcore_publish_time":"2021-12-16T16:42:44.852Z"},"1.1.0":{"name":"montag","version":"1.1.0","description":"format multiline strings using tagged templates, instead of puting all lines into an array and joining to a string","main":"./lib/montag.js","exports":"./lib/montag.js","scripts":{"test":"madrun test","coverage":"madrun coverage","lint":"madrun lint","fix:lint":"madrun fix:lint","report":"madrun report","watcher":"madrun watcher","watch:test":"madrun watch:test","watch:lint":"madrun watch:lint","watch:tape":"madrun watch:tape","watch:coverage:base":"madrun watch:coverage:base","watch:coverage:tape":"madrun watch:coverage:tape","watch:coverage":"madrun watch:coverage"},"nyc":{"include":["lib"]},"repository":{"type":"git","url":"git://github.com/coderaiser/montag.git"},"keywords":["tag","literal","join","template","array"],"author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"http://coderaiser.github.io/"},"license":"MIT","bugs":{"url":"https://github.com/coderaiser/montag/issues"},"homepage":"https://github.com/coderaiser/montag","devDependencies":{"coveralls":"^3.0.0","eslint":"^7.0.0","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^6.11.0","madrun":"^8.1.0","mock-require":"^3.0.3","nodemon":"^2.0.2","nyc":"^15.0.0","putout":"^12.9.2","supertape":"^4.1.0"},"dependencies":{},"publishConfig":{"access":"public"},"gitHead":"3ab6bcabe4338a1ca60c92d34c4a4f4e4f791bbd","_id":"montag@1.1.0","_nodeVersion":"15.5.0","_npmVersion":"6.14.7","dist":{"shasum":"91077afd95373cb88a87da3a56fd0a233faf190b","size":1884,"noattachment":false,"key":"/montag/-/montag-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/montag/download/montag-1.1.0.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/montag_1.1.0_1608831170134_0.8494420502928868"},"_hasShrinkwrap":false,"publish_time":1608831170312,"_cnpm_publish_time":1608831170312,"_cnpmcore_publish_time":"2021-12-16T16:42:45.088Z"},"1.0.0":{"name":"montag","version":"1.0.0","description":"format multiline strings using tagged templates, instead of puting all lines into an array and joining to a string","main":"./lib/montag.js","exports":"./lib/montag.js","scripts":{"test":"madrun test","coverage":"madrun coverage","lint":"madrun lint","fix:lint":"madrun fix:lint","report":"madrun report","watcher":"madrun watcher","watch:test":"madrun watch:test","watch:lint":"madrun watch:lint","watch:tape":"madrun watch:tape","watch:coverage:base":"madrun watch:coverage:base","watch:coverage:tape":"madrun watch:coverage:tape","watch:coverage":"madrun watch:coverage"},"nyc":{"include":["lib"]},"repository":{"type":"git","url":"git://github.com/coderaiser/montag.git"},"keywords":["tag","literal","join","template","array"],"author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"http://coderaiser.github.io/"},"license":"MIT","bugs":{"url":"https://github.com/coderaiser/montag/issues"},"homepage":"https://github.com/coderaiser/montag","devDependencies":{"@cloudcmd/stub":"^2.3.2","coveralls":"^3.0.0","eslint":"^7.0.0-rc.0","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^4.0.2","madrun":"^6.0.0","mock-require":"^3.0.3","nodemon":"^2.0.2","nyc":"^15.0.0","putout":"^8.0.4","supertape":"^1.2.3"},"dependencies":{},"publishConfig":{"access":"public"},"gitHead":"5376ffe2e82850e72bc69afafdb3cc41efb7437d","_id":"montag@1.0.0","_nodeVersion":"14.2.0","_npmVersion":"6.14.4","dist":{"shasum":"21ecc36362d331b6d08fee9295db09f29328378d","size":1670,"noattachment":false,"key":"/montag/-/montag-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/montag/download/montag-1.0.0.tgz"},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/montag_1.0.0_1588857935176_0.42883797450872585"},"_hasShrinkwrap":false,"publish_time":1588857935319,"_cnpm_publish_time":1588857935319,"_cnpmcore_publish_time":"2021-12-16T16:42:45.320Z"}},"readme":"# Montag [![License][LicenseIMGURL]][LicenseURL] [![NPM version][NPMIMGURL]][NPMURL] [![Dependency Status][DependencyStatusIMGURL]][DependencyStatusURL] [![Build Status][BuildStatusIMGURL]][BuildStatusURL] [![Coverage][CoverageIMGURL]][CoverageURL]\n\n> “If you don’t want a house built, hide the nails and wood.\n> 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.”\n\nFormat multiline strings using [tagged templates](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#Tagged_templates), instead of puting all lines into an array and joining to a string.\n\n## Install\n\n```\nnpm i montag\n```\n\n## How to use?\n\n```js\nconst montag = require('montag');\n\nconst str1 = montag`\n    if (a > b)\n        console.log(c);\n`;\n\nconst str2 = [\n    'if (a > b)',\n    '    console.log(c)',\n].join('\\n');\n\nstr1 === str2;\n// returns\ntrue;\n```\n\n## License\n\nMIT\n\n[NPMIMGURL]: https://img.shields.io/npm/v/montag.svg?style=flat&longCache=true\n[BuildStatusIMGURL]: https://img.shields.io/travis/coderaiser/montag/master.svg?style=flat&longCache=true\n[DependencyStatusIMGURL]: https://img.shields.io/david/coderaiser/montag.svg?style=flat&longCache=true\n[LicenseIMGURL]: https://img.shields.io/badge/license-MIT-317BF9.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/montag \"npm\"\n[BuildStatusURL]: https://travis-ci.org/coderaiser/montag \"Build Status\"\n[DependencyStatusURL]: https://david-dm.org/coderaiser/montag \"Dependency Status\"\n[LicenseURL]: https://tldrlegal.com/license/mit-license \"MIT License\"\n[CoverageURL]: https://coveralls.io/github/coderaiser/montag?branch=master\n[CoverageIMGURL]: https://coveralls.io/repos/coderaiser/montag/badge.svg?branch=master&service=github\n","_attachments":{},"homepage":"https://github.com/coderaiser/montag","bugs":{"url":"https://github.com/coderaiser/montag/issues"},"license":"MIT"}