Gathering detailed insights and metrics for dominject
Gathering detailed insights and metrics for dominject
Gathering detailed insights and metrics for dominject
Gathering detailed insights and metrics for dominject
Inject scripts and styles into the DOM with duplicate prevention and completion callback support
npm install dominject
Typescript
Module System
Min. Node Version
Node Version
NPM Version
72
Supply Chain
99.4
Quality
76.2
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
NOASSERTION License
2 Stars
97 Commits
1 Watchers
3 Branches
3 Contributors
Updated on Oct 31, 2023
Latest Version
5.9.0
Package Id
dominject@5.9.0
Unpacked Size
46.35 kB
Size
11.67 kB
File Count
9
NPM Version
10.2.3
Node Version
20.10.0
Published on
Jan 02, 2024
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
Inject scripts and styles into the DOM with duplicate prevention and completion callback support
1var dominject = require('dominject') 2var element = dominject({ 3 type: 'script', 4 url: '//some-url.js', 5 attrs: {}, // attributes to be added to the injected dom element 6 timeout: 60 * 1000, // defaults to one minute that is allowed before the injection times out 7 next: function (err, el) { 8 // completion callback for once the element has completed or error'd 9 }, 10}) // returns the element that was injected
npm install --save dominject
import pkg from ('dominject')
const pkg = require('dominject').default
1<script type="module"> 2 import pkg from '//cdn.skypack.dev/dominject@^5.9.0' 3</script>
1<script type="module"> 2 import pkg from '//unpkg.com/dominject@^5.9.0' 3</script>
1<script type="module"> 2 import pkg from '//dev.jspm.io/dominject@5.9.0' 3</script>
This package is published with the following editions:
dominject/source/index.js
is ESNext source code for Node.js 12 || 14 || 16 || 18 || 20 || 21 with Import for modulesdominject/edition-browsers/index.js
is ESNext compiled for web browsers with Import for modulesdominject
aliases dominject/edition-node-21/index.js
dominject/edition-node-21/index.js
is ESNext compiled for Node.js 4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modulesThis project provides its type information via inline JSDoc Comments. To make use of this in TypeScript, set your maxNodeModuleJsDepth
compiler option to 5
or thereabouts. You can accomplish this via your tsconfig.json
file like so:
1{ 2 "compilerOptions": { 3 "maxNodeModuleJsDepth": 5 4 } 5}
Discover the release history by heading on over to the HISTORY.md
file.
Discover how to contribute via the CONTRIBUTING.md
file.
Unless stated otherwise all works are:
and licensed under:
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
security policy file detected
Details
Reason
license file detected
Details
Reason
6 existing vulnerabilities detected
Details
Reason
Found 0/16 approved changesets -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
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
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