@ptomato/tc39-temporal-testpackage
    TypeScript icon, indicating that this package has built-in type declarations

    0.0.0 • Public • Published

    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

    Install

    npm i @ptomato/tc39-temporal-testpackage

    DownloadsWeekly Downloads

    1

    Version

    0.0.0

    License

    ISC

    Unpacked Size

    1.44 MB

    Total Files

    26

    Last publish

    Collaborators

    • ptomato