PureScript bindings for the JavaScript Temporal API.
spago install js-temporalGenerate HTML documentation with:
spago docs -f htmlOutput is written to generated-docs/html/index.html. Open in a browser to browse the API.
When contributing documentation, reference material can be fetched with:
./scripts/fetch-reference.shThis populates reference/spec (tc39 Temporal spec) and reference/mdn (MDN Temporal docs).
The examples/ directory is a separate Spago package containing PureScript translations of recipes from the Temporal Cookbook. Run all examples:
nix develop
just run-examplesOr run a single example:
spago run -p js-temporal-examples -m Examples.Cookbook.CurrentDateTimenix develop # or: spago install
spago build
spago testNode.js requires the Temporal flag: node --harmony-temporal. The nix develop shell provides a wrapped Node with this flag enabled.