This is a fork of the Temporal proposal for ECMAScript, which is currently at Stage 3 in TC39.
As stated in the original repository, this is not intended to run in production, so they recommend two alternative libraries, but none of those are up to date with the latest changes in the proposal as per the time of writing this.
So, I decided to fork the proposal and make it available as a package for those who want to try it out.
- Using npm:
npm install @talensjr/proposal-temporal
- Using yarn:
yarn add @talensjr/proposal-temporal
- Using pnpm:
pnpm add @talensjr/proposal-temporal
import '@talensjr/proposal-temporal';
The library provides a global
Temporal
object, which is the entry point for the Temporal API.
This is a big package (220+ KB) and not optimized for production, use it as your own risk.
I'll try to keep this package up to date with the latest changes in the original proposal, but I can't guarantee it.