Installations
npm install babel-plugin-date-fns-next
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
9.4.0
NPM Version
5.6.0
Score
65.6
Supply Chain
80.3
Quality
74.8
Maintenance
100
Vulnerability
100
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Developer
mkg0
Download Statistics
Total Downloads
10,646
Last Day
1
Last Week
4
Last Month
9
Last Year
82
GitHub Statistics
2 Stars
23 Commits
1 Forks
1 Watching
1 Branches
1 Contributors
Package Meta Information
Latest Version
1.0.0
Package Id
babel-plugin-date-fns-next@1.0.0
Unpacked Size
4.07 kB
Size
2.06 kB
File Count
4
NPM Version
5.6.0
Node Version
9.4.0
Total Downloads
Cumulative downloads
Total Downloads
10,646
Last day
0%
1
Compared to previous day
Last week
33.3%
4
Compared to previous week
Last month
200%
9
Compared to previous month
Last year
-41.8%
82
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
babel-plugin-date-fns
:warning: The current master is for v2 pre-release version of date-fns. See the plugin of v1 version.
Install
1$ npm i --save date-fns 2$ npm i --save-dev babel-plugin-date-fns
Example
Transforms
1import { distanceInWordsToNow, differenceInYears, format } from 'date-fns';
roughly to
1import distanceInWordsToNow from 'date-fns/distanceInWordsToNow'; 2import differenceInYears from 'date-fns/differenceInYears'; 3import format from 'date-fns/format';
Usage
.babelrc
1{ 2 "plugins": ["date-fns"], 3 "presets": ["es2015"] 4}
Webpack 2
1module: { 2 rules: [{ 3 test: /\.js$/, 4 exclude: /node_modules/, 5 use: { 6 loader: 'babel-loader', 7 presets: ['es2015'], 8 plugins: ['date-fns'], 9 }, 10 }], 11}
Thanks
Heavily inspired by babel-plugin-lodash and babel-plugin-recharts.
No vulnerabilities found.
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
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/23 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
- Warn: no pull requests merged into dev branch
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
29 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92
- Warn: Project is vulnerable to: GHSA-cwfw-4gq5-mrqx
- Warn: Project is vulnerable to: GHSA-g95f-p29q-9xw4
- Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg
- Warn: Project is vulnerable to: GHSA-c6rq-rjc2-86v2
- Warn: Project is vulnerable to: GHSA-8r6j-v8pm-fqw3
- Warn: Project is vulnerable to: MAL-2023-462
- Warn: Project is vulnerable to: GHSA-qqgx-2p2h-9c37
- Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h
- Warn: Project is vulnerable to: GHSA-6c8f-qphg-qjgp
- Warn: Project is vulnerable to: GHSA-4xc9-xhrj-v574
- Warn: Project is vulnerable to: GHSA-x5rq-j2xg-h7qm
- Warn: Project is vulnerable to: GHSA-jf85-cpcp-j695
- Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw
- Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9
- Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm
- Warn: Project is vulnerable to: GHSA-h726-x36v-rx45
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
- Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3
- Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m
- Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h
- Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw
- Warn: Project is vulnerable to: GHSA-j44m-qm6p-hp7m
- Warn: Project is vulnerable to: GHSA-3jfq-g458-7qm9
- Warn: Project is vulnerable to: GHSA-r628-mhmh-qjhw
- Warn: Project is vulnerable to: GHSA-9r2w-394v-53qc
- Warn: Project is vulnerable to: GHSA-5955-9wpr-37jh
- Warn: Project is vulnerable to: GHSA-qq89-hq3f-393p
- Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36
Score
1.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