Gathering detailed insights and metrics for date-fns
Gathering detailed insights and metrics for date-fns
Gathering detailed insights and metrics for date-fns
Gathering detailed insights and metrics for date-fns
npm install date-fns
99.2
Supply Chain
90.7
Quality
84.8
Maintenance
100
Vulnerability
100
License
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
34,937 Stars
2,226 Commits
1,796 Forks
207 Watching
23 Branches
400 Contributors
Updated on 28 Nov 2024
Minified
Minified + Gzipped
TypeScript (99.11%)
Shell (0.49%)
JavaScript (0.41%)
Cumulative downloads
Total Downloads
Last day
-8.6%
4,420,004
Compared to previous day
Last week
1.6%
25,410,644
Compared to previous week
Last month
10.8%
105,550,102
Compared to previous month
Last year
23.1%
1,026,318,133
Compared to previous year
39
🔥️ NEW: date-fns v4.0 with first-class time zone support is out!
date-fns provides the most comprehensive, yet simple and consistent toolset for manipulating JavaScript dates in a browser & Node.js
👉 Blog
It's like Lodash for dates
1import { compareAsc, format } from "date-fns"; 2 3format(new Date(2014, 1, 11), "yyyy-MM-dd"); 4//=> '2014-02-11' 5 6const dates = [ 7 new Date(1995, 6, 2), 8 new Date(1987, 1, 11), 9 new Date(1989, 6, 10), 10]; 11dates.sort(compareAsc); 12//=> [ 13// Wed Feb 11 1987 00:00:00, 14// Mon Jul 10 1989 00:00:00, 15// Sun Jul 02 1995 00:00:00 16// ]
The library is available as an npm package. To install the package run:
1npm install date-fns --save
See date-fns.org for more details, API, and other docs.
No vulnerabilities found.
Reason
30 commit(s) and 2 issue activity found in the last 90 days -- score normalized to 10
Reason
security policy file detected
Details
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
no binaries found in the repo
Reason
Found 0/21 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
24 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-25
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