{"name":"is-date-object","version":"1.1.0","author":{"name":"Jordan Harband"},"funding":{"url":"https://github.com/sponsors/ljharb"},"description":"Is this value a JS Date object? This module works cross-realm/iframe, and despite ES6 @@toStringTag.","license":"MIT","main":"index.js","exports":{".":"./index.js","./package.json":"./package.json"},"sideEffects":false,"scripts":{"prepack":"npmignore --auto --commentLines=autogenerated","prepublishOnly":"safe-publish-latest","prepublish":"not-in-publish || npm run prepublishOnly","pretest":"npm run lint","test":"npm run tests-only && npm run test:corejs","tests-only":"nyc tape 'test/**/*.js'","test:corejs":"nyc tape test-corejs.js","posttest":"npx npm@'>= 10.2' audit --production","lint":"eslint --ext=js,mjs .","postlint":"tsc && attw -P","version":"auto-changelog && git add CHANGELOG.md","postversion":"auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""},"repository":{"type":"git","url":"git://github.com/inspect-js/is-date-object.git"},"keywords":["Date","ES6","toStringTag","@@toStringTag","Date object"],"dependencies":{"call-bound":"^1.0.2","has-tostringtag":"^1.0.2"},"devDependencies":{"@arethetypeswrong/cli":"^0.17.1","@ljharb/eslint-config":"^21.1.1","@ljharb/tsconfig":"^0.2.2","@types/core-js":"^2.5.8","@types/tape":"^5.6.5","auto-changelog":"^2.5.0","core-js":"^3.39.0","encoding":"^0.1.13","eslint":"=8.8.0","in-publish":"^2.0.1","indexof":"^0.0.1","is":"^3.3.0","npmignore":"^0.3.1","nyc":"^10.3.2","safe-publish-latest":"^2.0.0","tape":"^5.9.0","typescript":"^5.8.0-dev.20241212"},"testling":{"files":"test/index.js","browsers":["iexplore/6.0..latest","firefox/3.0..6.0","firefox/15.0..latest","firefox/nightly","chrome/4.0..10.0","chrome/20.0..latest","chrome/canary","opera/10.0..latest","opera/next","safari/4.0..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2"]},"engines":{"node":">= 0.4"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"publishConfig":{"ignore":[".github/workflows","test-corejs.js"]},"_id":"is-date-object@1.1.0","gitHead":"a22f8d7d60cbddb809da08e4b47ed510b40a2dd9","types":"./index.d.ts","bugs":{"url":"https://github.com/inspect-js/is-date-object/issues"},"homepage":"https://github.com/inspect-js/is-date-object#readme","_nodeVersion":"23.4.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-PwwhEakHVKTdRNVOw+/Gyh0+MzlCl4R6qKvkhuvLtPMggI1WAHt9sOwZxQLSGpUaDnrdyDsomoRgNnCfKNSXXg==","shasum":"ad85541996fc7aa8b2729701d27b7319f95d82f7","tarball":"http://registry-npm.ywwl.com/is-date-object/download/is-date-object-1.1.0.tgz","fileCount":12,"unpackedSize":24172,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFOFgyeZuf7oGp3domcAID4Yz+uoC04ao8jDqazKyfnnAiB8rkpf9tdSuYtSWPTxmYek0WJveaWtVzTuw6mANbw2uA=="}],"size":8567,"noattachment":false,"key":"/is-date-object/-/is-date-object-1.1.0.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/is-date-object_1.1.0_1734048247957_0.9644553309927046"},"_hasShrinkwrap":false,"readme":"# is-date-object <sup>[![Version Badge][2]][1]</sup>\n\n[![github actions][actions-image]][actions-url]\n[![coverage][codecov-image]][codecov-url]\n[![dependency status][5]][6]\n[![dev dependency status][7]][8]\n[![License][license-image]][license-url]\n[![Downloads][downloads-image]][downloads-url]\n\n[![npm badge][11]][1]\n\nIs this value a JS Date object? This module works cross-realm/iframe, and despite ES6 @@toStringTag.\n\n## Example\n\n```js\nvar isDate = require('is-date-object');\nvar assert = require('assert');\n\nassert.notOk(isDate(undefined));\nassert.notOk(isDate(null));\nassert.notOk(isDate(false));\nassert.notOk(isDate(true));\nassert.notOk(isDate(42));\nassert.notOk(isDate('foo'));\nassert.notOk(isDate(function () {}));\nassert.notOk(isDate([]));\nassert.notOk(isDate({}));\nassert.notOk(isDate(/a/g));\nassert.notOk(isDate(new RegExp('a', 'g')));\n\nassert.ok(isDate(new Date()));\n```\n\n## Tests\nSimply clone the repo, `npm install`, and run `npm test`\n\n[1]: https://npmjs.org/package/is-date-object\n[2]: https://versionbadg.es/inspect-js/is-date-object.svg\n[5]: https://david-dm.org/inspect-js/is-date-object.svg\n[6]: https://david-dm.org/inspect-js/is-date-object\n[7]: https://david-dm.org/inspect-js/is-date-object/dev-status.svg\n[8]: https://david-dm.org/inspect-js/is-date-object#info=devDependencies\n[11]: https://nodei.co/npm/is-date-object.png?downloads=true&stars=true\n[license-image]: https://img.shields.io/npm/l/is-date-object.svg\n[license-url]: LICENSE\n[downloads-image]: https://img.shields.io/npm/dm/is-date-object.svg\n[downloads-url]: https://npm-stat.com/charts.html?package=is-date-object\n[codecov-image]: https://codecov.io/gh/inspect-js/is-date-object/branch/main/graphs/badge.svg\n[codecov-url]: https://app.codecov.io/gh/inspect-js/is-date-object/\n[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/is-date-object\n[actions-url]: https://github.com/inspect-js/is-date-object/actions\n","publish_time":1734048248145,"maintainers":[{"name":"ljharb","email":"ljharb@gmail.com"}],"_cnpm_publish_time":1734048248145,"dist-tags":{"latest":"1.1.0"}}