Gathering detailed insights and metrics for @aminnairi/rollup-plugin-generate-html
Gathering detailed insights and metrics for @aminnairi/rollup-plugin-generate-html
Gathering detailed insights and metrics for @aminnairi/rollup-plugin-generate-html
Gathering detailed insights and metrics for @aminnairi/rollup-plugin-generate-html
npm install @aminnairi/rollup-plugin-generate-html
Typescript
Module System
TypeScript (72.01%)
JavaScript (24.26%)
Dockerfile (3.73%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
223 Commits
2 Watchers
10 Branches
1 Contributors
Updated on Aug 16, 2019
Latest Version
0.6.0
Package Id
@aminnairi/rollup-plugin-generate-html@0.6.0
Unpacked Size
8.73 kB
Size
3.19 kB
File Count
8
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
Automatic HTML Generator
This plugin will write an index.html
file containing all of your bundled scripts.
1$ npm install @aminnairi/rollup-plugin-generate-html
1$ yarn add @aminnairi/rollup-plugin-generate-html
1// rollup.config.js 2import { generateHtml } from '@aminnairi/rollup-plugin-generate-html' 3 4export default { 5 input: 'src/index.js', 6 7 output: { 8 file: 'dist/index.js', 9 format: 'iife' 10 }, 11 12 plugins: [ 13 generateHtml() 14 ] 15}
1<!-- ./dist/index.html --> 2<!doctype html> 3<html lang='en-US'> 4 <head> 5 <meta charset='utf-8'> 6 <title>My Application</title> 7 </head> 8 <body> 9 <script src='index.js'></script> 10 </body> 11</html>
1/** 2 * @description Inject a bundle into an automatically created HTML file 3 * @param {object} [configuration] The configuration object 4 * @param {string} [configuration.charset=utf-8] The character set used in the meta charset tag 5 * @param {string} [configuration.title=My Application] The string used in the HTML title tag 6 * @param {string} [configuration.lang=en-US] The string used in the lang attribute of the html tag 7 * @param {string} [configuration.path] The destination where to put the HTML file (default to rollup.output.file base directory) 8 * @param {string} [configuration.publicPath] The string added before the script url 9 * @param {string} [configuration.id] Will include a div with a specified id attribute, typically for JavaScript frameworks (Vue, React, ...) 10 */ 11generateHtml({ 12 charset: 'ISO-8859-1', 13 title: 'My Awesome Application', 14 lang: 'fr-FR', 15 path: '../docs', 16 publicPath: '/home/', 17 id: 'app' 18})
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/26 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- 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
branch protection not enabled on development/release branches
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
21 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