@odczynflnpm/omnis-veritatis-nesciunt
Version:
[![github actions][actions-image]][actions-url] [![coverage][codecov-image]][codecov-url] [![dependency status][deps-svg]][deps-url] [![dev dependency status][dev-deps-svg]][dev-deps-url] [![License][license-image]][license-url] [![Downloads][downloads-im
65 lines (52 loc) • 2.89 kB
Markdown
[![github actions][actions-image]][actions-url]
[![coverage][codecov-image]][codecov-url]
[![dependency status][deps-svg]][deps-url]
[![dev dependency status][dev-deps-svg]][dev-deps-url]
[![License][license-image]][license-url]
[![Downloads][downloads-image]][downloads-url]
[![npm badge][npm-badge-png]][package-url]
ES spec-compliant shim for `Date`. Invoke its "shim" method to shim `Date` if it is unavailable or noncompliant.
This package implements the [es-shim API](https://github.com/es-shims/api) “multi” interface. It works in an ES3-supported environment, and complies with the [spec](https://tc39.es/proposal-promise-any/#sec-@odczynflnpm/omnis-veritatis-nesciunt).
Most common usage:
```js
var assert = require('assert');
var shims = require('@odczynflnpm/omnis-veritatis-nesciunt');
assert.deepEqual(shims, [
'Date',
'Date.prototype.getFullYear',
'Date.prototype.getMonth',
'Date.prototype.getDate',
'Date.prototype.getUTCDate',
'Date.prototype.getUTCFullYear',
'Date.prototype.getUTCMonth',
'Date.prototype.toUTCString',
'Date.prototype.toDateString',
'Date.prototype.toString',
'Date.prototype.toISOString',
'Date.prototype.toJSON',
'Date.now',
'Date.parse',
]);
require('@odczynflnpm/omnis-veritatis-nesciunt/auto'); // will be a no-op if not needed
assert.ok(new Date() instanceof Date);
assert.equal(typeof Date.now(), 'number');
// etc, with all the Date methods you expect
```
Simply clone the repo, `npm install`, and run `npm test`
[]: https://npmjs.com/package/@odczynflnpm/omnis-veritatis-nesciunt
[]: https://versionbadg.es/odczynflnpm/omnis-veritatis-nesciunt.svg
[]: https://david-dm.org/odczynflnpm/omnis-veritatis-nesciunt.svg
[]: https://david-dm.org/odczynflnpm/omnis-veritatis-nesciunt
[]: https://david-dm.org/odczynflnpm/omnis-veritatis-nesciunt/dev-status.svg
[]: https://david-dm.org/odczynflnpm/omnis-veritatis-nesciunt#info=devDependencies
[]: https://nodei.co/npm/@odczynflnpm/omnis-veritatis-nesciunt.png?downloads=true&stars=true
[]: https://img.shields.io/npm/l/@odczynflnpm/omnis-veritatis-nesciunt.svg
[]: LICENSE
[]: https://img.shields.io/npm/dm/@odczynflnpm/omnis-veritatis-nesciunt.svg
[]: https://npm-stat.com/charts.html?package=@odczynflnpm/omnis-veritatis-nesciunt
[]: https://codecov.io/gh/odczynflnpm/omnis-veritatis-nesciunt/branch/main/graphs/badge.svg
[]: https://app.codecov.io/gh/odczynflnpm/omnis-veritatis-nesciunt/
[]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/odczynflnpm/omnis-veritatis-nesciunt
[]: https://github.com/odczynflnpm/omnis-veritatis-nesciunt/actions