GitShow/sindresorhus/indent-string
sindresorhus

indent-string

Indent each line in a string

by sindresorhus
Star on GitHubForknpm

JavaScript

116 stars15 forks11 contributorsQuiet · 4y agoSince 2014v5.0.0MIT

Meet the team

See all 11 on GitHub →
sindresorhus
sindresorhus39 contributions
SamVerschueren
SamVerschueren2 contributions
aaronccasanova
aaronccasanova1 contribution
blakeembrey
blakeembrey1 contribution
bokub
bokub1 contribution
coreyfarrell
coreyfarrell1 contribution
BendingBender
BendingBender1 contribution
bevacqua
bevacqua1 contribution

Languages

View on GitHub →
JavaScript88.5%
TypeScript11.5%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

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

Recent fixes

View closed PRs →
vjpr
Allow a different indent char for the end of the indentClosedIssue

I am indenting with chars. I want to add a different char to the indent. It would be nice to still be able to use indent size properly. Workaround

vjpr · 3y ago
aaronccasanova
Update `blank` to `includeEmptyLines` in test.jsMergedPR
aaronccasanova · 4y ago
vjpr
Option to apply `strip-indent` before indentingClosedIssue

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 · 4y 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: 4y ago. Community health: 85%. Top contributors: sindresorhus, SamVerschueren, aaronccasanova, blakeembrey, bokub, coreyfarrell, BendingBender, bevacqua, Richienb.

·@ofershap

Replace github.com with gitshow.dev