Installations
npm install @mvasilkov/outdent
Developer Guide
Typescript
Yes
Module System
CommonJS
Node Version
13.10.1
NPM Version
6.14.4
Score
68.1
Supply Chain
87.8
Quality
75.4
Maintenance
100
Vulnerability
100
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (86.01%)
TypeScript (13.99%)
Developer
Download Statistics
Total Downloads
22,766
Last Day
29
Last Week
96
Last Month
487
Last Year
6,472
GitHub Statistics
1 Stars
18 Commits
3 Watching
1 Branches
1 Contributors
Bundle Size
1.00 kB
Minified
561.00 B
Minified + Gzipped
Package Meta Information
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
Total Downloads
Cumulative downloads
Total Downloads
22,766
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
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dev Dependencies
1
outdent
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.
Installation
1npm add @mvasilkov/outdent
Usage
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`))
Syntax
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.
Options
{ 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.
License
MIT
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
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
- Warn: no pull requests merged into dev branch
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Score
3
/10
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