Gathering detailed insights and metrics for @darkobits/strip-indent
Gathering detailed insights and metrics for @darkobits/strip-indent
Gathering detailed insights and metrics for @darkobits/strip-indent
Gathering detailed insights and metrics for @darkobits/strip-indent
⚙️ Normalizes whitespace in multi-line strings. Plays nice with ANSI escape sequences.
npm install @darkobits/strip-indent
Typescript
Module System
Min. Node Version
Node Version
NPM Version
65
Supply Chain
84.3
Quality
75.4
Maintenance
100
Vulnerability
100
License
TypeScript (91.76%)
JavaScript (8.24%)
Total Downloads
12,419
Last Day
1
Last Week
6
Last Month
32
Last Year
333
WTFPL License
24 Commits
2 Watchers
17 Branches
1 Contributors
Updated on Jun 03, 2021
Minified
Minified + Gzipped
Latest Version
2.0.0
Package Id
@darkobits/strip-indent@2.0.0
Size
3.45 kB
NPM Version
6.14.9
Node Version
14.15.0
Published on
Dec 24, 2020
Cumulative downloads
Total Downloads
Last Day
0%
1
Compared to previous day
Last Week
-33.3%
6
Compared to previous week
Last Month
-11.1%
32
Compared to previous month
Last Year
-48.9%
333
Compared to previous year
1
2
Normalizes whitespace in multi-line strings. Plays nice with ANSI escape sequences.
npm i @darkobits/strip-indent
1import stripIndent from '@darkobits/strip-indent'; 2 3const str = ` 4 Lorem ipsum dolor amet hoodie kogi copper 5 mug, whatever lomo shaman VHS try-hard 6 kinfolk beard disrupt chartreuse etsy. 7`; 8 9stripIndent(str) 10 11/* 12 13` 14Lorem ipsum dolor amet hoodie kogi copper 15mug, whatever lomo shaman VHS try-hard 16kinfolk beard disrupt chartreuse etsy. 17` 18 19*/
If you need to strip leading / trailing newlines or whitespace, call trim()
on
the string:
1import stripIndent from '@darkobits/strip-indent'; 2 3const str = ` 4 Kogi cold-pressed sriracha bespoke, 5 readymade kombucha pickled listicle tumblr 6 tousled truffaut shoreditch pop-up brunch. 7`; 8 9stripIndent(str).trim(); 10 11/* 12 13`Kogi cold-pressed sriracha bespoke, 14readymade kombucha pickled listicle tumblr 15tousled truffaut shoreditch pop-up brunch.` 16 17*/
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 2
Details
Reason
Found 0/18 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
security policy file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
28 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-23
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More