{"id":14155522,"url":"https://github.com/coderaiser/montag","last_synced_at":"2025-07-01T23:07:25.341Z","repository":{"id":57302600,"uuid":"262054291","full_name":"coderaiser/montag","owner":"coderaiser","description":"format multiline strings using tagged templates, instead of puting all lines into an array and joining to a string","archived":false,"fork":false,"pushed_at":"2023-01-15T17:38:47.000Z","size":41,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-20T06:48:44.875Z","etag":null,"topics":["javascript","join","nodejs","string","tag","template"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/coderaiser.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-05-07T13:13:48.000Z","updated_at":"2024-12-12T17:05:51.000Z","dependencies_parsed_at":"2023-02-09T23:00:34.577Z","dependency_job_id":null,"html_url":"https://github.com/coderaiser/montag","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/coderaiser/montag","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderaiser%2Fmontag","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderaiser%2Fmontag/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderaiser%2Fmontag/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderaiser%2Fmontag/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coderaiser","download_url":"https://codeload.github.com/coderaiser/montag/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderaiser%2Fmontag/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261925168,"owners_count":23231329,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["javascript","join","nodejs","string","tag","template"],"created_at":"2024-08-17T08:03:46.131Z","updated_at":"2025-07-01T23:07:25.272Z","avatar_url":"https://github.com/coderaiser.png","language":"JavaScript","readme":"# Montag [![License][LicenseIMGURL]][LicenseURL] [![NPM version][NPMIMGURL]][NPMURL] [![Build Status][BuildStatusIMGURL]][BuildStatusURL] [![Coverage][CoverageIMGURL]][CoverageURL]\n\n\u003e “If you don’t want a house built, hide the nails and wood.\n\u003e 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\u003e\n\u003e (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\nconst montag = require('montag');\n\nconst str1 = montag`\n    if (a \u003e b)\n        console.log(c);\n`;\n\nconst str2 = [\n    'if (a \u003e 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\u0026longCache=true\n[BuildStatusIMGURL]: https://img.shields.io/travis/coderaiser/montag/master.svg?style=flat\u0026longCache=true\n[LicenseIMGURL]: https://img.shields.io/badge/license-MIT-317BF9.svg?style=flat\u0026longCache=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\u0026service=github\n","funding_links":[],"categories":["JavaScript","nodejs"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderaiser%2Fmontag","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoderaiser%2Fmontag","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderaiser%2Fmontag/lists"}