{"name":"montag","version":"2.0.0","keywords":["tag","literal","join","template","array"],"author":{"url":"http://coderaiser.github.io/","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"montag@2.0.0","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/montag","bugs":{"url":"https://github.com/coderaiser/montag/issues"},"dist":{"shasum":"9f9480fa939de3ff251b0e7d9d430c3216fc5c80","tarball":"http://registry-npm.ywwl.com/montag/download/montag-2.0.0.tgz","fileCount":4,"integrity":"sha512-vWpcpbkYWywDlKWO0Fj5wlAPg2jy7pb+fUcLh68XDnCk7YsRaWhvX9ph1yiYDtR077eqa58eWIITwL+ct7+9Qw==","signatures":[{"sig":"MEQCIHjynbTpzHDr4/l/mKT4xg3dbZZTOJAofakUp4Gx+K1+AiAIG8jYaAuTT8+yeDRz59dGSyawapjBBplM0fJsQnUA7g==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5542,"size":2308,"noattachment":false,"key":"/montag/-/montag-2.0.0.tgz"},"main":"./lib/montag.js","type":"module","engines":{"node":">=22"},"exports":"./lib/montag.js","gitHead":"942ae0f8391d4a20fa3970674e787f6a22cd7a03","scripts":{"lint":"madrun lint","test":"madrun test","report":"madrun report","watcher":"madrun watcher","coverage":"madrun coverage","fix:lint":"madrun fix:lint","watch:lint":"madrun watch:lint","watch:tape":"madrun watch:tape","watch:test":"madrun watch:test","watch:coverage":"madrun watch:coverage","watch:coverage:base":"madrun watch:coverage:base","watch:coverage:tape":"madrun watch:coverage:tape"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"repository":{"url":"git+https://github.com/coderaiser/montag.git","type":"git"},"_npmVersion":"11.2.0","description":"format multiline strings using tagged templates, instead of putting all lines into an array and joining to a string","directories":{},"_nodeVersion":"25.9.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^10.2.1","madrun":"^13.0.1","putout":"^42.4.6","nodemon":"^3.1.14","superc8":"^12.3.1","supertape":"^12.11.0","mock-require":"^3.0.3","eslint-plugin-putout":"^31.1.2"},"_npmOperationalInternal":{"tmp":"tmp/montag_2.0.0_1776801973081_0.0731113726585495","host":"s3://npm-registry-packages-npm-production"},"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":1776801973271,"_cnpm_publish_time":1776801973271,"dist-tags":{"latest":"2.0.3"}}