0.0.0 • Published 4 years ago
@ptomato/tc39-temporal-testpackage v0.0.0
Temporal Polyfill
Polyfill for Proposal: Temporal
NOTE: We encourage you to experiment with the polyfill, but don't use it in production! The API will change before the proposal reaches Stage 3, based on feedback that we receive during this time. Please give us your feedback in the issue tracker.
Please run the polyfill with Node.js 12 or later.
Documentation
Reference documentation and examples can be found here.
A cookbook to help you get started and learn the ins and outs of Temporal is available here
Import as a Module
You can depend on the unstable Temporal polyfill in your personal projects:
$ npm install --save tc39-temporal
In code:
const { Temporal, Intl } = require('tc39-temporal');
Or, import the polyfill as an ES6 module:
import { Temporal, Intl } from 'tc39-temporal/lib/index.mjs';
Node REPL with Temporal
From this directory:
$ npm run playground
Running Cookbook Files
From this directory:
# Run all cookbook files:
$ npm run test-cookbook
# Run a single cookbook file:
$ env TEST=dateTimeFromLegacyDate npm run test-cookbook-one
0.0.0
4 years ago