Gathering detailed insights and metrics for @netsells/storybook-mockdate
Gathering detailed insights and metrics for @netsells/storybook-mockdate
Gathering detailed insights and metrics for @netsells/storybook-mockdate
Gathering detailed insights and metrics for @netsells/storybook-mockdate
npm install @netsells/storybook-mockdate
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
3 Stars
12 Commits
1 Forks
1 Watchers
1 Branches
2 Contributors
Updated on May 22, 2024
Latest Version
0.3.3
Package Id
@netsells/storybook-mockdate@0.3.3
Unpacked Size
3.62 kB
Size
1.68 kB
File Count
6
NPM Version
9.7.1
Node Version
18.14.0
Published on
May 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
3
This package provides an easy and convenient way to lock your stories at a specific date. This is important in cases where you are performing automated Visual Regression Testing, and a change in date/time may cause false failures.
Not only will this lock your stories at a specific date, it will also display that date as an overlay on your story to show the date being mocked.
This decorator is compatible with Vue and React stories.
1$ yarn add -D @netsells/storybook-mockdate
Provide the decorator in your storybook decorators config:
1import withMockdate from '@netsells/storybook-mockdate'; 2 3export default [ 4 withMockdate, 5];
To lock your stories at a specific date, you can simply provide the mockdate
parameter with your date:
1export default { 2 parameters: { 3 mockdate: new Date('2020-01-14T15:47:18.502Z'), // Any date contructor format will work 4 }, 5};
You can also provide a date to specific stories if required:
1story.parameters = { 2 mockdate: new Date('2020-01-14T15:47:18.502Z'), // Any date contructor format will work 3};
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
7 existing vulnerabilities detected
Details
Reason
Found 2/9 approved changesets -- score normalized to 2
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
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
security policy file not detected
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