Installations
npm install @denkristoffer/babel-plugin-date-fns
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
10.15.3
NPM Version
6.4.1
Score
65.4
Supply Chain
78.9
Quality
74.7
Maintenance
100
Vulnerability
99.6
License
Releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Developer
date-fns
Download Statistics
Total Downloads
21,141
Last Day
1
Last Week
2
Last Month
5
Last Year
58
GitHub Statistics
92 Stars
35 Commits
15 Forks
5 Watching
6 Branches
53 Contributors
Bundle Size
4.66 kB
Minified
2.09 kB
Minified + Gzipped
Package Meta Information
Latest Version
0.2.1
Package Id
@denkristoffer/babel-plugin-date-fns@0.2.1
Unpacked Size
4.01 kB
Size
2.01 kB
File Count
4
NPM Version
6.4.1
Node Version
10.15.3
Total Downloads
Cumulative downloads
Total Downloads
21,141
Last day
0%
1
Compared to previous day
Last week
0%
2
Compared to previous week
Last month
0%
5
Compared to previous month
Last year
-81.4%
58
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
babel-plugin-date-fns
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
Found 4/23 approved changesets -- score normalized to 1
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
- Warn: no fuzzer integrations found
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
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 12 are checked with a SAST tool
Reason
13 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92
- Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw
- Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg
- Warn: Project is vulnerable to: GHSA-w8qv-6jwh-64r5
- Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c
- Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq
- Warn: Project is vulnerable to: GHSA-2j2x-2gpw-g8fm
- Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6
- Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
- Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3
- Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h
- Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw
Score
1.9
/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