GitShow/sindresorhus/trim-newlines
sindresorhus

trim-newlines

Trim newlines from the start and/or end of a string

by sindresorhus
Star on GitHubForknpm

JavaScript

49 stars39 forks5 contributorsQuiet · 3y agoSince 2015v5.0.0MIT

Meet the team

See all 5 on GitHub →
sindresorhus
sindresorhus17 contributions
tommy-mitchell
tommy-mitchell3 contributions
BendingBender
BendingBender1 contribution
mickstar
mickstar1 contribution
Richienb
Richienb1 contribution

Languages

View on GitHub →
JavaScript83.2%
TypeScript16.8%

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 →
nealeu
v5 could export default trimNewlinesClosedIssue

v5 causes an unnecessary breakage where you could still provide a default export of trimNewlines so that people don't get things like:

nealeu · 2y ago
tommy-mitchell
Meta tweaksMergedPR

Closes #6. Figured I'd go ahead and do this if I had to fork the repo anyway for #10.

tommy-mitchell · 3y ago
tommy-mitchell
Type improvementsMergedPR

Inlines the type from to trim literal strings on the type level. Dependent on #11 (didn't feel like updating this twice).

tommy-mitchell · 3y ago
Structured data for AI agents

Repository: sindresorhus/trim-newlines. Description: Trim newlines from the start and/or end of a string Stars: 49, Forks: 39. Primary language: JavaScript. Languages: JavaScript (83.2%), TypeScript (16.8%). License: MIT. Latest release: v5.0.0 (3y ago). Open PRs: 0, open issues: 0. Last activity: 3y ago. Community health: 85%. Top contributors: sindresorhus, tommy-mitchell, BendingBender, mickstar, Richienb.

·@ofershap

Replace github.com with gitshow.dev