@cdoman/cadence-js
v0.0.2
Published
This is TypeScript implementation of [Cadence](https://github.com/connordoman/cadence). See this repo for more information.
Downloads
27
Readme
Cadence JS
This is TypeScript implementation of Cadence. See this repo for more information.
Installation
npm install @cdoman/cadence-jsUsage
import { compileJSON } from "@cdoman/cadence-js";
const expression = "EVERY TUE FROM 2026-01-01 TO 2026-02-01";
const results: Date[] = compileJSON(expression);
// ["2026-01-06","2026-01-13","2026-01-20","2026-01-27"]