sindresorhus

indent-string

Indent each line in a string

by sindresorhus

JavaScript

JavaScript88.5%
TypeScript11.5%

Commit activity

Last 12 weeks · 1 commit

Full graph →

Community health

4 of 6 standards met

Community profile →
85
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template
vjpr

With template strings I usually indent them with the code. It looks nicer. Today: Better: Best: Instead of combining and it would be nice to just have the option on . Downside: Separation of concerns, but I've seen similar stuff in some of your other packages. Think of it as a declarative way to define the indentation when using a template string. "Set the indent to 2 spaces". Maybe another package called would be better for this functionality.

vjpr · 5y ago
Structured data for AI agents

Repository: sindresorhus/indent-string. Description: Indent each line in a string Stars: 116, Forks: 15. Primary language: JavaScript. Languages: JavaScript (88.5%), TypeScript (11.5%). License: MIT. Latest release: v5.0.0 (5y ago). Open PRs: 0, open issues: 0. Last activity: 1mo ago. Community health: 85%. Top contributors: sindresorhus, SamVerschueren, aaronccasanova, blakeembrey, bokub, coreyfarrell, BendingBender, bevacqua, Richienb.