Gathering detailed insights and metrics for fix-time
Gathering detailed insights and metrics for fix-time
Gathering detailed insights and metrics for fix-time
Gathering detailed insights and metrics for fix-time
npm install fix-time
Typescript
Module System
Node Version
NPM Version
72.9
Supply Chain
91.9
Quality
75
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
924
Last Day
2
Last Week
4
Last Month
12
Last Year
117
3 Stars
65 Commits
2 Watching
2 Branches
1 Contributors
Latest Version
2.1.0
Package Id
fix-time@2.1.0
Unpacked Size
23.92 kB
Size
5.87 kB
File Count
7
NPM Version
6.9.0
Node Version
12.4.0
Cumulative downloads
Total Downloads
Last day
100%
2
Compared to previous day
Last week
100%
4
Compared to previous week
Last month
50%
12
Compared to previous month
Last year
-46.3%
117
Compared to previous year
Parse messy human date and time strings
Forked from substack/parse-messy-time to add some improvements. Notably...
Parse messy human date and time strings
Forked from substack/parse-messy-time to add some improvements. Notably...
var fixTime = require('fix-time');
var q = process.argv.slice(2).join(' ');
console.log(fixTime(q));
output:
$ date; cal
Tue Apr 14 12:20:12 PDT 2015
April 2015
Su Mo Tu We Th Fr Sa
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30
$ node parse.js last wednesday
Wed Apr 08 2015 00:00:00 GMT-0700 (PDT)
$ node parse.js 9pm on the 4th of july 1988
Mon Jul 04 1988 21:00:00 GMT-0700 (PDT)
$ node parse.js next friday
Fri Apr 24 2015 00:00:00 GMT-0700 (PDT)
$ node parse.js this friday
Fri Apr 17 2015 00:00:00 GMT-0700 (PDT)
$ node parse.js 6 am tomorrow
Wed Apr 15 2015 06:00:00 GMT-0700 (PDT)
$ node parse.js in 2hrs 50 minutes
Tue Apr 14 2015 15:10:12 GMT-0700 (PDT)
$ node parse.js 2.5 hours ago
Tue Apr 14 2015 09:50:12 GMT-0700 (PDT)
1var fixTime = require('fix-time')
Parse str
, returning a Date instance d
or null if no time could be parsed.
opts.now
- interpret str
with respect to opts.now
, default Date.now()
With npm do:
npm install cefn/fix-time#stable
MIT
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 0/30 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 SAST tool detected
Details
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
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2024-12-23
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