# dmnd/dedent

⬅️ ES6 string tag that strips indentation from multi-line strings.

Repository: https://github.com/dmnd/dedent
Canonical: https://ross.abutalabs.com/products/dedent
Language: TypeScript
License: MIT
License Family: permissive
Topics: javascript, dedent, es6, template-string, es2015
Last push: 2026-03-01T16:05:49+00:00

## Health v2 (maintenance only)
Score: 68/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 70, release rhythm 48, longevity 100
- inputs: {"age_days": 4250, "days_push": 185, "days_rel": 185, "gap_med": 125, "n_releases_24m": 4}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1190, forks 45 (observed 2026-08-28T04:03:55.987952+00:00)

## What it is
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
- artifact type: library
- maturity: stable
- function: templating, developer-tools
- domain: developer-tools, web-development
- platform: cross-platform
- tags: es6-template-literals, string-manipulation, typescript, npm-package, nodejs, javascript

## Member repositories
- dmnd/dedent (main) score 68

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:55.987952+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:23:01.434647+00:00, confidence not recorded.
  - readme: https://github.com/dmnd/dedent (fetched 2026-08-28T04:03:55.987952+00:00, sha 884991b6f6b4)
  - registry_npm: https://registry.npmjs.org/dedent (fetched 2026-08-29T12:30:01.883520+00:00, sha 15e1049308ed)
- Data as of 2026-08-30T08:39:29.467469+00:00.
