Gathering detailed insights and metrics for @jinntec/jinn-toast
Gathering detailed insights and metrics for @jinntec/jinn-toast
Gathering detailed insights and metrics for @jinntec/jinn-toast
Gathering detailed insights and metrics for @jinntec/jinn-toast
npm install @jinntec/jinn-toast
Typescript
Module System
Node Version
NPM Version
74.2
Supply Chain
98.7
Quality
79.2
Maintenance
100
Vulnerability
100
License
JavaScript (81.14%)
CSS (18.86%)
Total Downloads
14,866
Last Day
74
Last Week
1,179
Last Month
5,529
Last Year
10,306
MIT License
1 Stars
22 Commits
1 Forks
1 Watchers
1 Branches
2 Contributors
Updated on Jan 30, 2024
Latest Version
1.0.5
Package Id
@jinntec/jinn-toast@1.0.5
Unpacked Size
10.18 kB
Size
3.98 kB
File Count
7
NPM Version
8.19.3
Node Version
16.19.1
Published on
Jul 05, 2023
Cumulative downloads
Total Downloads
Plain vanilla web-component wrapping toastify-js
This webcomponent follows the open-wc recommendation.
1npm i @jinntec/jinn-toast
1<script type="module"> 2 import 'jinn-toast/jinn-toast.js'; 3</script> 4 5<jinn-toast text="first toast with defaults"></jinn-toast> 6<jinn-toast text="second toast top left" position="left"></jinn-toast> 7<jinn-toast text="third toast bottom left" position="left" gravity="bottom"></jinn-toast> 8<jinn-toast text="fourth toast bottom left" position="right" gravity="bottom"></jinn-toast> 9<jinn-toast text="warning" duration="5000" data-class="warning" position="right" gravity="bottom"></jinn-toast> 10<jinn-toast text="error" duration="-1" data-class="error" close="true" position="left" gravity="bottom"></jinn-toast> 11
To display the toast by API:
document.getElementById('my-toast').showToast('hello');
Or by dispatching an 'jinn-toast' event to the respective toast element:
toast.dispatchEvent(
new CustomEvent('jinn-toast', {
composed: true,
bubbles: true,
detail: {
text:'hello'
},
}),
);
Most of orginal options are just copied from toastify-js. See their docs for further options.
To scan the project for linting errors, run
1npm run lint
You can lint with ESLint and Prettier individually as well
1npm run lint:eslint
1npm run lint:prettier
To automatically fix many linting errors, run
1npm run format
You can format using ESLint and Prettier individually as well
1npm run format:eslint
1npm run format:prettier
To run the suite of Web Test Runner tests, run
1npm run test
To run the tests in watch mode (for <abbr title="test driven development">TDD</abbr>, for example), run
1npm run test:watch
For most of the tools, the configuration is in the package.json
to reduce the amount of files in your project.
If you customize the configuration a lot, you can consider moving them to individual files.
web-dev-server
1npm start
To run a local development server that serves the basic demo located in demo/index.html
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
security policy file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 1/21 approved changesets -- score normalized to 0
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
Reason
26 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 MoreLast Day
-77.8%
74
Compared to previous day
Last Week
-20.5%
1,179
Compared to previous week
Last Month
105.5%
5,529
Compared to previous month
Last Year
593.1%
10,306
Compared to previous year