This package has been deprecated

Author message:

See https://github.com/tc39/proposal-temporal#polyfills to polyfill Temporal in your own projects.

proposal-temporal
TypeScript icon, indicating that this package has built-in type declarations

0.9.0 • Public • Published

Non-Production, Test-Only Temporal Polyfill

A non-production polyfill was built to validate this proposal. This polyfill continues to live in this repo, but only for the purposes of running tests and powering the documentation "playground" as described below. DO NOT use this polyfill in your own projects! Instead, please use a polyfill listed in the table here.

Documentation

Reference documentation and examples can be found here.

A cookbook of common use cases can help you get started with Temporal.

Documentation Playground

When viewing the reference documentation, this non-production polyfill is automatically loaded in your browser. You can experiment with Temporal by opening your browser's developer tools console.

Running Documentation Cookbook as Tests

Documentation cookbook code samples are also runnable as tests.

# Run all cookbook tests (run from /polyfill folder)
$ npm run test-cookbook

# Test one cookbook file (run from /polyfill folder)
$ env TEST=dateTimeFromLegacyDate npm run test-cookbook-one

Dependents (10)

Package Sidebar

Install

npm i proposal-temporal

Weekly Downloads

3,090

Version

0.9.0

License

ISC

Unpacked Size

3.91 MB

Total Files

28

Last publish

Collaborators

  • ptomato