{"id":19586513,"url":"https://github.com/glebbash/multiline-str","last_synced_at":"2026-04-30T03:33:16.592Z","repository":{"id":38173120,"uuid":"282167648","full_name":"glebbash/multiline-str","owner":"glebbash","description":"Convenient multiline strings for JavaScript ","archived":false,"fork":false,"pushed_at":"2022-09-22T15:43:17.000Z","size":294,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-23T04:55:01.735Z","etag":null,"topics":["dedent","identation","javascript","typescript"],"latest_commit_sha":null,"homepage":"https://glebbash.github.io/multiline-str/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/glebbash.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-24T08:38:08.000Z","updated_at":"2022-02-23T15:32:29.000Z","dependencies_parsed_at":"2022-09-20T21:52:10.334Z","dependency_job_id":null,"html_url":"https://github.com/glebbash/multiline-str","commit_stats":null,"previous_names":["glebbash/multiline"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/glebbash/multiline-str","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glebbash%2Fmultiline-str","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glebbash%2Fmultiline-str/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glebbash%2Fmultiline-str/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glebbash%2Fmultiline-str/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/glebbash","download_url":"https://codeload.github.com/glebbash/multiline-str/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glebbash%2Fmultiline-str/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32453769,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"online","status_checked_at":"2026-04-30T02:00:05.929Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["dedent","identation","javascript","typescript"],"created_at":"2024-11-11T08:00:09.898Z","updated_at":"2026-04-30T03:33:11.583Z","avatar_url":"https://github.com/glebbash.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# multiline-str\n\n[![Source](https://img.shields.io/badge/source-github-informational)](https://github.com/glebbash/multiline-strn)\n[![Deploy](https://github.com/glebbash/multiline-str/workflows/build/badge.svg)](https://github.com/glebbash/multiline-str/actions)\n[![Coverage Status](https://coveralls.io/repos/github/glebbash/multiline-str/badge.svg?branch=master)](https://coveralls.io/github/glebbash/multiline-str?branch=master)\n\nStrip indentation of multiline strings based on length of the last line.\n\n## Installation\n\n### Node\n\n```bash\nnpm i panic-fn\n```\n\n### Deno\n\n```ts\nimport { m } from \"https://deno.land/x/multiline_str/mod.ts\";\n```\n\n## Usage\n\n```ts\nimport { m } from \"multiline-str\";\n\nconsole.log(m`\n    Indentation is magically removed.\n    No more whitespace junk before text.\n    `);\n\nconsole.log(m`\n          You control indentation with the length of the last line\nthis ---\u003e `);\n\nconsole.log(m`\n                |Important stuff\neverything else |more important stuff\nwill be removed |the most important stuff         \n                |`);\n\nconsole.log(m`\n001 | You can even \n002 | do some\n003 | weird things\n*** | `);\n```\n\n## Module info\n\nThis module was created using [denoland/dnt](https://github.com/denoland/dnt).\n\nThis project is [Mit Licensed](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglebbash%2Fmultiline-str","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fglebbash%2Fmultiline-str","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglebbash%2Fmultiline-str/lists"}