mirror of
https://code.forgejo.org/actions/setup-node.git
synced 2025-05-20 13:14:44 +00:00
.
This commit is contained in:
parent
beb1329f9f
commit
2b95e76931
7736 changed files with 1874747 additions and 51184 deletions
53
node_modules/is-date-object/README.md
generated
vendored
Normal file
53
node_modules/is-date-object/README.md
generated
vendored
Normal file
|
@ -0,0 +1,53 @@
|
|||
# is-date-object <sup>[![Version Badge][2]][1]</sup>
|
||||
|
||||
[![Build Status][3]][4]
|
||||
[![dependency status][5]][6]
|
||||
[![dev dependency status][7]][8]
|
||||
[![License][license-image]][license-url]
|
||||
[![Downloads][downloads-image]][downloads-url]
|
||||
|
||||
[![npm badge][11]][1]
|
||||
|
||||
[![browser support][9]][10]
|
||||
|
||||
Is this value a JS Date object? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
|
||||
|
||||
## Example
|
||||
|
||||
```js
|
||||
var isDate = require('is-date-object');
|
||||
var assert = require('assert');
|
||||
|
||||
assert.notOk(isDate(undefined));
|
||||
assert.notOk(isDate(null));
|
||||
assert.notOk(isDate(false));
|
||||
assert.notOk(isDate(true));
|
||||
assert.notOk(isDate(42));
|
||||
assert.notOk(isDate('foo'));
|
||||
assert.notOk(isDate(function () {}));
|
||||
assert.notOk(isDate([]));
|
||||
assert.notOk(isDate({}));
|
||||
assert.notOk(isDate(/a/g));
|
||||
assert.notOk(isDate(new RegExp('a', 'g')));
|
||||
|
||||
assert.ok(isDate(new Date()));
|
||||
```
|
||||
|
||||
## Tests
|
||||
Simply clone the repo, `npm install`, and run `npm test`
|
||||
|
||||
[1]: https://npmjs.org/package/is-date-object
|
||||
[2]: http://versionbadg.es/ljharb/is-date-object.svg
|
||||
[3]: https://travis-ci.org/ljharb/is-date-object.svg
|
||||
[4]: https://travis-ci.org/ljharb/is-date-object
|
||||
[5]: https://david-dm.org/ljharb/is-date-object.svg
|
||||
[6]: https://david-dm.org/ljharb/is-date-object
|
||||
[7]: https://david-dm.org/ljharb/is-date-object/dev-status.svg
|
||||
[8]: https://david-dm.org/ljharb/is-date-object#info=devDependencies
|
||||
[9]: https://ci.testling.com/ljharb/is-date-object.png
|
||||
[10]: https://ci.testling.com/ljharb/is-date-object
|
||||
[11]: https://nodei.co/npm/is-date-object.png?downloads=true&stars=true
|
||||
[license-image]: http://img.shields.io/npm/l/is-date-object.svg
|
||||
[license-url]: LICENSE
|
||||
[downloads-image]: http://img.shields.io/npm/dm/is-date-object.svg
|
||||
[downloads-url]: http://npm-stat.com/charts.html?package=is-date-object
|
Loading…
Add table
Add a link
Reference in a new issue