Skip to content

feature: dedent #842

Description

@keturn

dedent: Given a multi-line string indented with whitespace on every line, remove common indentation from each line.

Useful for tagged template literals.

See https://github.com/tc39/proposal-string-dedent for more context and prior art in other languages.

An MIT-licensed implementation in TypeScript exists at https://github.com/jridgewell/string-dedent

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions