Gathering detailed insights and metrics for mwp-application-launcher
Gathering detailed insights and metrics for mwp-application-launcher
Gathering detailed insights and metrics for mwp-application-launcher
Gathering detailed insights and metrics for mwp-application-launcher
npm install mwp-application-launcher
Typescript
Module System
Node Version
NPM Version
JavaScript (78.24%)
CSS (21.76%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
101 Commits
13 Branches
3 Contributors
Updated on Jul 30, 2020
Latest Version
3.1.1
Package Id
mwp-application-launcher@3.1.1
Unpacked Size
350.49 kB
Size
113.56 kB
File Count
51
NPM Version
6.4.1
Node Version
8.16.1
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
32
All the
yarn
commands below are applicable tonpm
.
Add the module to your dependencies:
> yarn add mwp-application-launcher
Import it in your code and initialize the module:
1import { init } from 'mwp-application-launcher'; 2 3const launcher = init( 4 { 5 url: 'https://path/to/your/api/endpoint', 6 hasPermission: (permission) => { ... }, 7 } 8);
Option | Type | Default | Description |
---|---|---|---|
url | string | Indicate from which url the items should be fetched. | |
hasPermission | function(permission: string): boolean|Promise | Tells whether the logged in user has the given permission. |
The
hasPermission
function can either
- be synchronous and return
true
for allowance,false
otherwise- be asynchronous and return a promise that will be
resolved
for allowance,rejected
otherwise
This init function returns 2 functions:
renderLauncher({ container, light, ...props })
to display the items in a vertical full-height bar,renderLauncherButton({ container, light, ...props})
to display a control button which opens a modal containing the items.Option | Type | Default | Description |
---|---|---|---|
container | string | null | A selector matching a HTML element to which the launcher will be attached. |
light | boolean | false | Whether to use the light theme instead of the dark one. |
...props | any number of options of any type | These options will be passed down to the launcher parent element. |
Launch the development server:
yarn dev
The source folder is /src
.
Files with global code and functions should directly be in /src
. The associated test folder is /src/__tests__
.
Components folders are in the form: /src/NameOfComponent
. They are composed of an index.jsx
and style.module.scss
files, and a __tests__
folder.
Build the module in /dist
:
yarn build
Tests are made with Jest. The following command launches all tests:
yarn test
Jest CLI arguments can be passed directly to the above command, like so:
yarn test -u
(updates snapshots).
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
Found 0/21 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
license file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
71 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