Skip to content
JS
Package

ts-dedent

TypeScript package which smartly trims and strips indentation from multi-line strings

v2.3.0, 10 Jun 2026MITESM + CommonJSTypes: BundledTypeScript tooling
$ npm install ts-dedent

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
010m20m30m40mSept 2025Mar 2026Sept 2026High 33.2m (25 Aug 2026)Low 6m (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

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

  1. v2 first release 2.0.0, 28 Sept 2020
  2. v1 first release 1.0.0, 14 Jun 2018

Recent releases

VersionPublished
2.3.010 Jun 2026
2.2.01 Aug 2021
2.1.131 Mar 2021
2.1.024 Mar 2021
2.0.028 Sept 2020
1.2.028 Sept 2020
1.1.125 Jan 2020
1.1.026 Jul 2019
1.0.014 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-dedent

CDN

jsDelivr: 1.2m requests in 30 days
  • jsDelivrhttps://cdn.jsdelivr.net/npm/ts-dedent@2.3.0/
  • unpkghttps://unpkg.com/ts-dedent@2.3.0/
  • esm.shhttps://esm.sh/ts-dedent@2.3.0
PackageWeekly downloadsGzipLast releaseModuleComparison
@stdlib/types529.5k-3 months agoCommonJS-
Sources: npm registry, npm downloads API, GitHub API, jsDelivr. Data fetched 25 Sept 2026.

Indexability: Indexed.