Gathering detailed insights and metrics for is-date-object
Gathering detailed insights and metrics for is-date-object
Gathering detailed insights and metrics for is-date-object
Gathering detailed insights and metrics for is-date-object
Is this value a JS Date object? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
npm install is-date-object
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
14 Stars
90 Commits
5 Forks
5 Watching
1 Branches
1 Contributors
Updated on 25 Dec 2023
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
-6.9%
6,688,644
Compared to previous day
Last week
2.4%
40,010,863
Compared to previous week
Last month
15.9%
159,954,854
Compared to previous month
Last year
9.7%
1,599,287,881
Compared to previous year
1
Is this value a JS Date object? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
1var isDate = require('is-date-object');
2var assert = require('assert');
3
4assert.notOk(isDate(undefined));
5assert.notOk(isDate(null));
6assert.notOk(isDate(false));
7assert.notOk(isDate(true));
8assert.notOk(isDate(42));
9assert.notOk(isDate('foo'));
10assert.notOk(isDate(function () {}));
11assert.notOk(isDate([]));
12assert.notOk(isDate({}));
13assert.notOk(isDate(/a/g));
14assert.notOk(isDate(new RegExp('a', 'g')));
15
16assert.ok(isDate(new Date()));
Simply clone the repo, npm install
, and run npm test
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
security policy file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/27 approved changesets -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
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