# sindresorhus/multiline

Multiline strings in JavaScript

Repository: https://github.com/sindresorhus/multiline
Canonical: https://ross.abutalabs.com/products/multiline
Language: JavaScript
License: MIT
License Family: permissive
Topics: deprecated
Archived: true
Last push: 2021-01-23T17:42:12+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 4564, "days_push": 2048, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1406, forks 64 (observed 2026-08-28T04:04:38.324788+00:00)

## What it is
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
- artifact type: library
- maturity: maintenance
- function: developer-tools
- domain: developer-tools, web-development
- platform: browser
- tags: multiline-strings, deprecated, template-literals, string-utilities, nodejs, javascript

## Member repositories
- sindresorhus/multiline (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:38.324788+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-30T04:38:44.128857+00:00, confidence not recorded.
  - readme: https://github.com/sindresorhus/multiline (fetched 2026-08-28T04:04:38.324788+00:00, sha e84d8f35cf87)
  - registry_npm: https://registry.npmjs.org/multiline (fetched 2026-08-29T11:52:33.192069+00:00, sha d8a2776ebe4f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
