Skip to content

isabella232/temporal-2

 
 

Repository files navigation

Temporal Monorepo

A lightweight Temporal polyfill and other futuristic JavaScript date utilities.

temporal-polyfill

A spec-compliant polyfill in 16kb.

npm install temporal-polyfill

A) Import globally:

import 'temporal-polyfill/global'

console.log(Temporal.Now.zonedDateTimeISO().toString())

B) Import as an ES module without side effects:

import { Temporal } from 'temporal-polyfill'

console.log(Temporal.Now.zonedDateTimeISO().toString())

Read more about temporal-polyfill

Repo Dev Commands

yarn build
yarn watch
yarn test --watch
yarn test --coverage
yarn lint
yarn size

About

A lightweight Temporal polyfill and other futuristic JavaScript date utilities.

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 75.1%
  • TypeScript 24.9%