Gathering detailed insights and metrics for min-indent
Gathering detailed insights and metrics for min-indent
Gathering detailed insights and metrics for min-indent
Gathering detailed insights and metrics for min-indent
npm install min-indent
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
19 Stars
8 Commits
4 Forks
3 Watchers
3 Branches
4 Contributors
Updated on May 20, 2024
Latest Version
1.0.1
Package Id
min-indent@1.0.1
Size
1.62 kB
NPM Version
6.14.4
Node Version
14.0.0
Published on
May 28, 2020
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
Get the shortest leading whitespace from lines in a string
The line with the least number of leading whitespace, ignoring empty lines, determines the number.
Useful for removing redundant indentation.
$ npm install --save min-indent
1const minIndent = require('min-indent'); 2 3const str = '\tunicorn\n\t\tcake'; 4/* 5 unicorn 6 cake 7*/ 8 9minIndent(str); // 1
MIT © James Kyle
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 3/8 approved changesets -- score normalized to 3
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
38 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-30
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