dmnd/dedent
⬅️ ES6 string tag that strips indentation from multi-line strings. observed · 2026-08-28
Health v2 · maintenance only
68/100
- Activity 70
- Release rhythm 48
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 125
- age_days: 4250
- days_rel: 185
- days_push: 185
- n_releases_24m: 4
Adoption not part of the score
1190 stars · 45 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
dedent is an ES6 tagged template literal that strips indentation from multi-line strings, keeping source code readable without extra whitespace in the output. It can also be used as a plain function and supports configurable options via withOptions.
Use cases
- strip indentation from multi-line strings in JavaScript
- write readable multi-line template literals without extra spaces
- format long strings across multiple lines in source code
- clean up indented text blocks in tests or error messages
- use a dedent function on template strings in Node.js
When to choose
- you write multi-line strings in JS/TS and want indentation-free output
- you want a tiny, zero-dependency utility with TypeScript support
When to avoid
- you need full template processing like interpolation escaping or i18n
- you work outside the JavaScript/Node ecosystem
Facets
library · maturity stable
templating developer-tools developer-tools web-development cross-platform es6-template-literals string-manipulation typescript npm-package nodejs javascript
2 sources
- readme: https://github.com/dmnd/dedent · fetched 2026-08-28 · 884991b6f6b4
- registry_npm: https://registry.npmjs.org/dedent · fetched 2026-08-29 · 15e1049308ed
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| dmnd/dedent | main | 68 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem