/timelion-javascript

Timelion expression generator in javascript

Primary LanguageTypeScriptMIT LicenseMIT

timelion-javascript

Timelion expression generator in javascript, for convinent of writing timelion expressions.

Typescript is supported (and strongly recommended because this library contains typings reference the official document).

Install

npm install timelion --save

Usage

const { timelion } = require("timelion");

timelion
  .es({ q: "*", index: "my_index" })
  .lines({ width: 2, fill: 1 })
  .color('#ff6')
  .compile();

Run the example above in runkit.