Gathering detailed insights and metrics for @dword-design/dedent
Gathering detailed insights and metrics for @dword-design/dedent
Gathering detailed insights and metrics for @dword-design/dedent
Gathering detailed insights and metrics for @dword-design/dedent
⬅️ ES6 string tag that strips indentation from multi-line strings.
npm install @dword-design/dedent
Typescript
Module System
Node Version
NPM Version
TypeScript (64.32%)
JavaScript (35.3%)
Shell (0.38%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
1,036 Stars
92 Commits
38 Forks
8 Watchers
3 Branches
13 Contributors
Updated on Jul 09, 2025
Latest Version
0.7.0
Package Id
@dword-design/dedent@0.7.0
Unpacked Size
5.06 kB
Size
2.35 kB
File Count
4
NPM Version
8.11.0
Node Version
16.16.0
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
An ES6 string tag that strips indentation from multi-line strings.
1import dedent from "dedent"; 2 3function usageExample() { 4 const first = dedent`A string that gets so long you need to break it over 5 multiple lines. Luckily dedent is here to keep it 6 readable without lots of spaces ending up in the string 7 itself.`; 8 9 const second = dedent` 10 Leading and trailing lines will be trimmed, so you can write something like 11 this and have it work as you expect: 12 13 * how convenient it is 14 * that I can use an indented list 15 - and still have it do the right thing 16 17 That's all. 18 `; 19 20 const third = dedent(` 21 Wait! I lied. Dedent can also be used as a function. 22 `); 23 24 return first + "\n\n" + second + "\n\n" + third; 25}
1> console.log(usageExample());
A string that gets so long you need to break it over
multiple lines. Luckily dedent is here to keep it
readable without lots of spaces ending up in the string
itself.
Leading and trailing lines will be trimmed, so you can write something like
this and have it work as you expect:
* how convenient it is
* that I can use an indented list
- and still have it do the right thing
That's all.
Wait! I lied. Dedent can also be used as a function.
MIT
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
security policy file detected
Details
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
3 commit(s) and 3 issue activity found in the last 90 days -- score normalized to 5
Reason
Found 9/29 approved changesets -- score normalized to 3
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
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
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
11 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
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