Ross ROSS = Recommend OSS · open-source software intelligence for agents

dmnd/dedent

⬅️ ES6 string tag that strips indentation from multi-line strings. observed · 2026-08-28

github.com/dmnd/dedent · TypeScript · MIT (permissive) 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

Full methodology

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

Member repositories

RepositoryRoleHealth v2
dmnd/dedentmain68

For agents

markdown · JSON · MCP: product_card(name="dmnd/dedent")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem