Package
ts-dedent
TypeScript package which smartly trims and strips indentation from multi-line strings
Key numbers
As of 25 Sept 2026
- Weekly downloads
- 23.7m
- +184% over 12 months
- Gzip bundle size
- -
- No Bundlephobia data
- Dependencies
- 0
- Direct, from package.json
- Last release
- 3 months ago
- v2.3.0
- GitHub stars
- 177
- 10 forks
- Open issues / PRs
- 2 / 2
- Contributors
- -
- Commits, last 52 weeks
- 42
Downloads
Last week 2026-09-15 to 2026-09-21
23,671,220 downloads last week, 120,447,915 in the last month. The 12-month change of +184% compares the average of the last 4 weeks with the first 4 weeks of the series.
- Releases, last 12 months
- 19 in total
- Latest version
- 2.3.0, 10 Jun 20263 months ago
- First published
- 14 Jun 2018
- Last push to GitHub
- 9 Aug 202646 days before the snapshot
- Repository archived
- No
- Open issues
- 2
- Open pull requests
- 2
- Commits, last 52 weeks
- 42
- Dependents on npm
- 590
Major versions
- v2 first release 2.0.0, 28 Sept 2020
- v1 first release 1.0.0, 14 Jun 2018
Recent releases
| Version | Published |
|---|---|
| 2.3.0 | 10 Jun 2026 |
| 2.2.0 | 1 Aug 2021 |
| 2.1.1 | 31 Mar 2021 |
| 2.1.0 | 24 Mar 2021 |
| 2.0.0 | 28 Sept 2020 |
| 1.2.0 | 28 Sept 2020 |
| 1.1.1 | 25 Jan 2020 |
| 1.1.0 | 26 Jul 2019 |
| 1.0.0 | 14 Jun 2018 |
- Module format
- ESM + CommonJSFrom package.json type, main and exports fields
- TypeScript types
- Bundled
- Node.js engine range
- >=6.10
- Runtimes
- -
- Unpacked size (npm)
- 27 kB
- Dependencies (0)
- None
npm install ts-dedentCDN
jsDelivr: 1.2m requests in 30 days
- jsDelivr
https://cdn.jsdelivr.net/npm/ts-dedent@2.3.0/ - unpkg
https://unpkg.com/ts-dedent@2.3.0/ - esm.sh
https://esm.sh/ts-dedent@2.3.0
| Package | Weekly downloads | Gzip | Last release | Module | Comparison |
|---|---|---|---|---|---|
| @stdlib/types | 529.5k | - | 3 months ago | CommonJS | - |
Indexability: Indexed.