sindresorhus/multiline
Multiline strings in JavaScript observed · 2026-08-28
Health v2 · maintenance only
10/100
- Activity 0
- Release rhythm 35
- Longevity 100
Flags: no_releases archived
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4564
- days_rel: n/a
- days_push: 2048
- n_releases_24m: 0
Adoption not part of the score
1406 stars · 64 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A small JavaScript library that enables multiline strings via block comments inside anonymous function calls, with an optional stripIndent helper. It is deprecated and superseded by ES2015 template literals.
Use cases
- write multiline strings without concatenation or array join
- define CLI help output text
- store test fixtures as readable multiline text
- embed multi-line database queries in code
- print multi-line CLI welcome messages
When to choose
- maintaining legacy JavaScript codebases that already depend on it
- targeting pre-ES2015 environments without template literal support
When to avoid
- starting any new project - use ES2015 template literals instead
- performance-critical string building
- modern Node.js or browser environments
Facets
library · maturity maintenance
developer-tools developer-tools web-development browser multiline-strings deprecated template-literals string-utilities nodejs javascript
2 sources
- readme: https://github.com/sindresorhus/multiline · fetched 2026-08-28 · e84d8f35cf87
- registry_npm: https://registry.npmjs.org/multiline · fetched 2026-08-29 · d8a2776ebe4f
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| sindresorhus/multiline | main | 10 |
For agents
markdown · JSON · MCP: product_card(name="sindresorhus/multiline")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem