Gathering detailed insights and metrics for @dword-design/endent
Gathering detailed insights and metrics for @dword-design/endent
Gathering detailed insights and metrics for @dword-design/endent
Gathering detailed insights and metrics for @dword-design/endent
npm install @dword-design/endent
Typescript
Module System
Node Version
NPM Version
TypeScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
35 Stars
40 Commits
4 Forks
1 Watchers
1 Branches
3 Contributors
Updated on Jun 11, 2025
Latest Version
1.4.1
Package Id
@dword-design/endent@1.4.1
Unpacked Size
9.27 kB
Size
3.60 kB
File Count
7
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
3
An ES6 string tag that makes indentation right, adds some key features to dedent.
1import dedent from "dedent" 2import endent from "endent" 3 4var someobj = { 5 contact: { 6 jack: 123456, 7 tom: 654321 8 }, 9 color: "blue" 10} 11 12var somejson = '["bear", "fish", "dog", "cat"]' 13 14var awfulTmpl = dedent` 15 function store (state, emitter) { 16 state["someobj"] = ${JSON.stringify(someobj, null, 2)} 17 state["somejson"] = ${JSON.stringify(JSON.parse(somejson), null, 2)} 18 } 19` 20// use endent.pretty(value) when value is object or array. 21var prettyTmpl = endent` 22 function store (state, emitter) { 23 state["someobj"] = ${endent.pretty(someobj)} 24 state["somejson"] = ${somejson} 25 } 26` 27 28console.log(awfulTmpl + "\n\n" + prettyTmpl)
1// awfulTmpl 2function store (state, emitter) { 3 state["someobj"] = { 4"contact": { 5 "jack": 123456, 6 "tom": 654321 7}, 8"color": "blue" 9} 10 state["somejson"] = [ 11"bear", 12"fish", 13"dog" 14] 15} 16 17// prettyTmpl 18function store (state, emitter) { 19 state["someobj"] = { 20 "contact": { 21 "jack": 123456, 22 "tom": 654321 23 }, 24 "color": "blue" 25 } 26 state["somejson"] = [ 27 "bear", 28 "fish", 29 "dog", 30 "cat" 31 ] 32}
1var dependencies = ['jquery', 'underscore', 'bootstrap'] 2var dependencyTmpl = `` 3dependencies.forEach((d, i) => { 4 dependencyTmpl += `var ${d} = require("${d}")\n` 5}) 6 7var awfulTmpl = dedent` 8 ;(function () { 9 ${dependencyTmpl} 10 })() 11` 12 13var prettyTmpl = endent` 14 ;(function () { 15 ${dependencyTmpl} 16 })() 17` 18 19console.log(awfulTmpl + "\n\n" + prettyTmpl)
1// awfulTmpl 2;(function () { 3 var jquery = require('jquery') 4var underscore = require('underscore') 5var bootstrap = require('bootstrap') 6})() 7 8 9// prettyTmpl 10;(function () { 11 var jquery = require('jquery') 12 var underscore = require('underscore') 13 var bootstrap = require('bootstrap') 14})() 15
MIT
No vulnerabilities found.
Reason
no binaries found in the repo
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 2/24 approved changesets -- 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
license file not detected
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
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