{"name":"montag","version":"2.0.1","type":"module","description":"format multiline strings using tagged templates, instead of putting 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+https://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","engines":{"node":">=22"},"devDependencies":{"eslint":"^10.2.1","eslint-plugin-putout":"^31.1.2","madrun":"^13.0.1","mock-require":"^3.0.3","nodemon":"^3.1.14","putout":"^42.4.6","superc8":"^12.3.1","supertape":"^12.11.0"},"dependencies":{},"publishConfig":{"access":"public"},"_id":"montag@2.0.1","gitHead":"2d19c5ca95c88b3c39877c07c9dffa93fafcfc59","_nodeVersion":"25.9.0","_npmVersion":"11.4.2","dist":{"integrity":"sha512-aWTJ736El1fZu7/Tvdf1QyPcPnYAMFzHlIE9FJ9JYFF3FpQ7QzyjniW1PP8+SHcfEI66tHB+EhA9+QLZcLJd6Q==","shasum":"f3abd2a837948157f37d2dbe8f728a01fc27a4b3","tarball":"http://registry-npm.ywwl.com/montag/download/montag-2.0.1.tgz","fileCount":4,"unpackedSize":5610,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCID2aIGuvy81u/c74hmYp1yrTNB6RXQw0dwoWYWL2ezfYAiBMcdW6qYKMfAxltsthUeZj+9QYMpQ067uij0NR/nGhTQ=="}],"size":2330,"noattachment":false,"key":"/montag/-/montag-2.0.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-npm-production","tmp":"tmp/montag_2.0.1_1776803264108_0.4262827699557177"},"_hasShrinkwrap":false,"readme":"# Montag [![License][LicenseIMGURL]][LicenseURL] [![NPM version][NPMIMGURL]][NPMURL] [![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>\n> (c) Ray Bradbury \"Fahrenheit 451\"\n\nFormat multiline strings using [tagged templates](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#Tagged_templates), instead of putting all lines into an array and joining to a string. Use [@putout/plugin-montag](https://github.com/coderaiser/putout/tree/master/packages/plugin-montag) to convert existing code to `montag`.\n\n## Install\n\n```\nnpm i montag\n```\n\n## How to use?\n\n```js\nimport {montag} from '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[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[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","publish_time":1776803264255,"_cnpm_publish_time":1776803264255,"dist-tags":{"latest":"2.0.3"}}