Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: dedent #842

Open
keturn opened this issue Nov 23, 2024 · 1 comment
Open

feature: dedent #842

keturn opened this issue Nov 23, 2024 · 1 comment

Comments

@keturn
Copy link

keturn commented Nov 23, 2024

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

@raon0211
Copy link
Collaborator

This would definitely be helpful to add in our string utilities :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants