@photon-elements/photon-tools

1.7.0 • Public • Published

photon-tools

A set of utilities used by photon-elements

Install

Node.js users can install from the npm registry using

$ npm install --save @photon-elements/photon-tools

Use

All the tools are exposed as ES6 modules.

The tools currently available in this package are:

photon-looseJSON

A JSON parser and serializer, based on standard JavaScript JSON.parse() and JSON.stringify() but adding support for the much needed null, NaN and infinities, and big integers using big.js.

It exports a looseJSON object with two methods, looseJSON.parse() and looseJSON.stringify().

photon-timeseries-tools

A set of tools to deal with time-series:

  • isArray()
  • isTimeseries()
  • jsonToStack()
  • serializeTimeseriesMetadata()
  • sameMetadata()
  • isPlottable()
  • isAnnotable()
  • sort()
  • timeRange()
  • timeseriesToC3()

photon-timeseries-to-c3-worker

A [web worker] to parse Warp 10 JSON response and translate it to C3 data format

photon-ts-plotting-tools

An utility class helping to deal with time-series plotting

Dependents (3)

Package Sidebar

Install

npm i @photon-elements/photon-tools

Weekly Downloads

0

Version

1.7.0

License

MIT

Unpacked Size

95.4 kB

Total Files

12

Last publish

Collaborators

  • lostinbrittany