Gathering detailed insights and metrics for @dadi/web-es6-templates
Gathering detailed insights and metrics for @dadi/web-es6-templates
Gathering detailed insights and metrics for @dadi/web-es6-templates
Gathering detailed insights and metrics for @dadi/web-es6-templates
npm install @dadi/web-es6-templates
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
1 Stars
23 Commits
1 Forks
4 Watchers
1 Branches
4 Contributors
Updated on May 03, 2019
Latest Version
0.0.1
Package Id
@dadi/web-es6-templates@0.0.1
Size
6.31 kB
NPM Version
3.10.10
Node Version
6.11.2
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
This module allows native ES6 template literals to be used with DADI Web.
Add this module as a dependency:
npm install @dadi/web-es6-templates --save
Include it in the engines
array passed to Web:
1require('@dadi/web')({ 2 engines: [ 3 require('@dadi/web-es6-templates') 4 ] 5})
The base directory for absolute paths is the utils/helpers
directory.
Helpers are required()
functions that can be embeded into templates to keep your code DRY. Take this example which could live in your helpers
folder as slugify.js
.
1var s = require('underscore.string/slugify') 2 3module.exports = slugify = (chunk) => { 4 return s(chunk) 5}
This function would be used in a template file like so:
1${slugify('The Quick Brown Fox Jumps Over The Lazy Dog')}
Output:
the-quick-brown-fox-jumps-over-the-lazy-dog
The base directory for absolute paths is the pages/
directory. Take the following directory tree.
pages/
|_ partials/
|_ |_ header.js
|_ |_ footer.js
|_ index.js
|_ index.json
To include the partials from index.js
, you can use an underscore to indicate a sub-folder:
1${partials_header} 2 3<h1>ES6 Templates test</h1> 4 5<p>This page lives at ${host}.</p> 6 7<h2>Loop test</h2> 8 9<ul> 10 ${posts.results.map(i => '<li>' + i.attributes.title + '</li>').join('')} 11</ul> 12 13${partials_footer}
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 1/22 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
Reason
76 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