{"id":13469659,"url":"https://github.com/tamino-martinius/node-ts-dedent","last_synced_at":"2025-05-16T00:07:46.108Z","repository":{"id":32574651,"uuid":"137308605","full_name":"tamino-martinius/node-ts-dedent","owner":"tamino-martinius","description":"TypeScript package which smartly trims and strips indentation from multi-line strings","archived":false,"fork":false,"pushed_at":"2024-04-08T11:42:10.000Z","size":632,"stargazers_count":170,"open_issues_count":5,"forks_count":8,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-03T01:51:26.730Z","etag":null,"topics":["dedent","deindent","indentation","multi-line-text","node","node-js","node-module","package","template-literals","typescript"],"latest_commit_sha":null,"homepage":"","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/tamino-martinius.png","metadata":{"files":{"readme":"README.md","changelog":"HISTORY.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-06-14T05:06:35.000Z","updated_at":"2025-04-22T22:54:53.000Z","dependencies_parsed_at":"2024-06-12T08:11:35.511Z","dependency_job_id":null,"html_url":"https://github.com/tamino-martinius/node-ts-dedent","commit_stats":{"total_commits":143,"total_committers":7,"mean_commits":"20.428571428571427","dds":0.08391608391608396,"last_synced_commit":"18c4736c79806d7fe78bdaaaf5ae307b79f9574a"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tamino-martinius%2Fnode-ts-dedent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tamino-martinius%2Fnode-ts-dedent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tamino-martinius%2Fnode-ts-dedent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tamino-martinius%2Fnode-ts-dedent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tamino-martinius","download_url":"https://codeload.github.com/tamino-martinius/node-ts-dedent/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254043218,"owners_count":22004912,"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":["dedent","deindent","indentation","multi-line-text","node","node-js","node-module","package","template-literals","typescript"],"created_at":"2024-07-31T15:01:49.246Z","updated_at":"2025-05-16T00:07:41.091Z","avatar_url":"https://github.com/tamino-martinius.png","language":"TypeScript","funding_links":[],"categories":["TypeScript","node","typescript"],"sub_categories":[],"readme":"# TypeScript Dedent\n\n[![codecov](https://codecov.io/gh/tamino-martinius/node-ts-dedent/branch/master/graph/badge.svg)](https://codecov.io/gh/tamino-martinius/node-ts-dedent)\n\nTypeScript package which smartly trims and strips indentation from multi-line strings.\n\n## Usage Examples\n\n```js\nimport { dedent } from 'ts-dedent';\n\nconsole.log(dedent`A string that gets so long you need to break it over\n                    multiple lines. Luckily dedent is here to keep it\n                    readable without lots of spaces ending up in the string\n                    itself.`);\n\nconsole.log(dedent`\n  A string that gets so long you need to break it over\n  multiple lines. Luckily dedent is here to keep it\n  readable without lots of spaces ending up in the string\n  itself.\n`);\n```\n\n```txt\nA string that gets so long you need to break it over\nmultiple lines. Luckily dedent is here to keep it\nreadable without lots of spaces ending up in the string\nitself.\n```\n\n---\n\n```js\nconsole.log(dedent`\n  Leading and trailing lines will be trimmed, so you can write something like\n  this and have it work as you expect:\n\n    * how convenient it is\n    * that I can use an indented list\n        - and still have it do the right thing\n\n  That's all.\n`);\n```\n\n```txt\nLeading and trailing lines will be trimmed, so you can write something like\nthis and have it work as you expect:\n\n  * how convenient it is\n  * that I can use an indented list\n    - and still have it do the right thing\n\nThat's all.\n```\n\n---\n\n```js\nconsole.log(dedent`\n  Also works fine\n\n  ${1}. With any kind of\n  ${2}. Placeholders\n`);\n```\n\n```txt\nAlso works fine\n\n1. With any kind of\n2. Placeholders\n```\n\n---\n\n```js\nconsole.log(dedent(`\n  Wait! I lied. Dedent can also be used as a function.\n`);\n```\n\n```txt\nWait! I lied. Dedent can also be used as a function.\n```\n\n## License\n\nMIT\n\n## Based on\n\n- [dedent](https://www.npmjs.com/package/dedent) by ~dmnd\n- [dedent-js](https://www.npmjs.com/package/dedent-js) by ~martin-kolarik\n\n## Changelog\n\nSee [history](HISTORY.md) for more details.\n\n- `2.2.1` **2021-08-01** Update build dependencies and fixed typos in readme\n- `2.2.0` **2021-08-01** Add indentation to values with multiline strings \u0026 added ESM module\n- `2.1.1` **2021-03-31** Update build dependencies\n- `2.1.0` **2021-03-24** Bugfixes\n- `2.0.0` **2020-09-28** Bugfixes\n- `1.2.0` **2020-09-28** Update build dependencies and a couple of minor improvments\n- `1.1.0` **2019-07-26** Update build dependencies and fixed links in readme\n- `1.0.0` **2018-06-14** Initial release\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftamino-martinius%2Fnode-ts-dedent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftamino-martinius%2Fnode-ts-dedent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftamino-martinius%2Fnode-ts-dedent/lists"}