Skip to content

Latest commit

 

History

History
46 lines (28 loc) · 739 Bytes

README.md

File metadata and controls

46 lines (28 loc) · 739 Bytes

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