GitShow/sindresorhus/strip-indent
sindresorhus

strip-indent

Strip leading whitespace from each line in a string

by sindresorhus
Star on GitHubForknpm

JavaScript

150 stars18 forks8 contributorsQuiet · 10mo agoSince 2014v4.1.1MIT

Meet the team

See all 8 on GitHub →
sindresorhus
sindresorhus33 contributions
coreyfarrell
coreyfarrell1 contribution
BendingBender
BendingBender1 contribution
jamiebuilds
jamiebuilds1 contribution
kevva
kevva1 contribution
kyleshevlin
kyleshevlin1 contribution
remcohaszing
remcohaszing1 contribution
Richienb
Richienb1 contribution

Languages

View on GitHub →
JavaScript100%

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 →
punkpeye
Add a warning about performanceClosedIssue

I didn't expect this function to be a bottleneck of anything, since at the glance, it is very simple, but after adding it to my codebase, I noticed CPU spikes. After debugging a bunch, I realized that a good chunk of it is coming from function. It seems like it is really CPU intensive on larger strings.

punkpeye · 8mo ago
remcohaszing
Remove duplicate default exportMergedPR

Having two default exports causes a type error.

remcohaszing · 10mo ago
sindresorhus
Add `dedent` named exportMergedPR

Fixes #10 I thought it looked more readable to have it as a method than an options-object.

sindresorhus · 10mo ago
Structured data for AI agents

Repository: sindresorhus/strip-indent. Description: Strip leading whitespace from each line in a string Stars: 150, Forks: 18. Primary language: JavaScript. Languages: JavaScript (100%). License: MIT. Latest release: v4.1.1 (10mo ago). Open PRs: 0, open issues: 0. Last activity: 10mo ago. Community health: 85%. Top contributors: sindresorhus, coreyfarrell, BendingBender, jamiebuilds, kevva, kyleshevlin, remcohaszing, Richienb.

·@ofershap

Replace github.com with gitshow.dev