Installations
npm install @entrylabs/modal
Developer Guide
Typescript
No
Module System
ESM
Min. Node Version
>=16.x
Node Version
20.17.0
NPM Version
10.8.2
Score
75.6
Supply Chain
92.5
Quality
83.2
Maintenance
100
Vulnerability
98.2
License
Releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (57.93%)
SCSS (40.5%)
HTML (1.58%)
Developer
entrylabs
Download Statistics
Total Downloads
21,808
Last Day
4
Last Week
43
Last Month
219
Last Year
9,166
GitHub Statistics
2 Stars
176 Commits
4 Watching
8 Branches
7 Contributors
Bundle Size
154.41 kB
Minified
48.91 kB
Minified + Gzipped
Package Meta Information
Latest Version
1.4.3
Package Id
@entrylabs/modal@1.4.3
Unpacked Size
7.55 MB
Size
1.55 MB
File Count
15
NPM Version
10.8.2
Node Version
20.17.0
Publised On
25 Sept 2024
Total Downloads
Cumulative downloads
Total Downloads
21,808
Last day
-55.6%
4
Compared to previous day
Last week
10.3%
43
Compared to previous week
Last month
-9.9%
219
Compared to previous month
Last year
96.7%
9,166
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dev Dependencies
28
entry-modal
Install
Using npm
1$ npm install --save @entrylabs/modal
Using yarn
1$ yarn add @entrylabs/modal
Example
Codesandbox
- React Component : https://codesandbox.io/s/entry-modal-react-couo2d
- IIFE : https://codesandbox.io/s/entry-modal-iife-rf1rl
Usage
Import - React Component
Using ECMAScript module
1import '@entrylabs/modal/dist/entry/entry-modal.css' 2import { Alert, Confirm, Prompt } from '@entrylabs/modal';
Using CommonJS module
1require('@entrylabs/modal/dist/entry-modal.css'); 2const { Alert, Confirm, Prompt } = require('@entrylabs/modal');
Import - script
1<link rel="stylesheet" href="{prefix}/entry/entry-modal.css" /> 2<script src="{prefix}/entry-modal.js"></script> 3const { alert, confirm, prompt } = EntryModal;
React props
1<Alert 2 isShow={true} 3 content="content" 4 title="title" 5 onEvent={() => {}} 6 options={{ 7 positiveButtonText: "positiveButtonText" 8 }} 9/> 10<Confirm 11 isShow={true} 12 content="content" 13 title="title" 14 onEvent={() => {}} 15 options={{ 16 negativeButtonText: "negativeButtonText", 17 positiveButtonText: "positiveButtonText" 18 }} 19/> 20<Prompt 21 isShow={true} 22 content="content" 23 defaultValue="defaultValue" 24 title="title" 25 onEvent={() => {}} 26 options={{ 27 placeholder: "ppp", 28 negativeButtonText: "negativeButtonText", 29 positiveButtonText: "positiveButtonText" 30 }} 31/>
iife props
1await EntryModal.alert('content', 'title', { 2 positiveButtonText: "positiveButtonText" 3}); 4const bool = await EntryModal.confirm('content', 'title', { 5 negativeButtonText: "negativeButtonText", 6 positiveButtonText: "positiveButtonText" 7}); 8const value = await EntryModal.prompt('content', 'defaultValue', 'title', { 9 placeholder: "ppp", 10 negativeButtonText: "negativeButtonText", 11 positiveButtonText: "positiveButtonText" 12});
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
8 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55
- Warn: Project is vulnerable to: GHSA-566m-qj78-rww5
- Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j
- Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm
- Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92
- Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg
- Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw
Reason
Found 0/16 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
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/release.yml:1
- Info: no jobLevel write permissions found
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/entrylabs/entry-modal/release.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/entrylabs/entry-modal/release.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/entrylabs/entry-modal/release.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/entrylabs/entry-modal/release.yml/master?enable=pin
- Info: 0 out of 2 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 2 third-party GitHubAction dependencies pinned
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 18 are checked with a SAST tool
Score
2.7
/10
Last Scanned on 2025-01-27
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