Gathering detailed insights and metrics for @mvasilkov/outdent
Gathering detailed insights and metrics for @mvasilkov/outdent
Gathering detailed insights and metrics for @mvasilkov/outdent
Gathering detailed insights and metrics for @mvasilkov/outdent
npm install @mvasilkov/outdent
Typescript
Module System
Node Version
NPM Version
68.1
Supply Chain
87.8
Quality
75.4
Maintenance
100
Vulnerability
100
License
JavaScript (86.01%)
TypeScript (13.99%)
Total Downloads
22,766
Last Day
29
Last Week
96
Last Month
487
Last Year
6,472
1 Stars
18 Commits
3 Watching
1 Branches
1 Contributors
Minified
Minified + Gzipped
Latest Version
1.0.5
Package Id
@mvasilkov/outdent@1.0.5
Unpacked Size
5.46 kB
Size
2.59 kB
File Count
5
NPM Version
6.14.4
Node Version
13.10.1
Cumulative downloads
Total Downloads
Last day
-38.3%
29
Compared to previous day
Last week
-61.3%
96
Compared to previous week
Last month
64%
487
Compared to previous month
Last year
9.3%
6,472
Compared to previous year
1
Remove extra indentation from multiline strings.
Use @mvasilkov/outdent to remove extraneous leading whitespace from multiline strings. This makes your hair silky and shiny, and probably has other uses.
1npm add @mvasilkov/outdent
1const { outdent } = require('@mvasilkov/outdent') 2 3console.log(outdent(` 4 The nine most terrifying words in the English language are, 5 “I’m from the government and I’m here to help.” 6`))
outdent(string, [options])
Receives a string, returns a string with unnecessary indentation removed.
outdentLines(strings, [options])
Accepts an array of strings, returns an array of strings. Useful when you have an array of strings.
{ strict: true }
Treat the indentation of the first line as meaningful. This is usually the case when loading strings from a file.
{ strict: false }
Ignore the first line's indentation, and drop the first and the last line when empty. Useful for writing multiline strings in JS. This is the default.
{ endWithNewline: true }
When enabled, insert a line break at the end of the result, if there is none. Does nothing when strict: true is in effect.
MIT
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 existing vulnerabilities detected
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/18 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
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
Score
Last Scanned on 2025-01-27
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