@dlorian/ts-factory
Simple time series factory for time series mock data creation
Last updated 2 years ago by dlorian .
ISC · Original npm · Tarball · package.json
$ cnpm install @dlorian/ts-factory 
SYNC missed versions from official npm registry.

ts-factory

Build Status SonarCloud (.io)

ts-factory is just a simple factory used to create some kind of times series mock data.

Install

If you want to install it you can use npm for this

npm install @dlorian/ts-factory

Usage

const tsFactory = require("@dlorian/ts-factory");

const tsOptions = {
  start: "2018-01-01",
  end: "2019-01-01"
};

const tsStream = tsFactory.stream(tsOptions);

tsStream.pipe(process.stdout);

Options

Option Desc Expected input Required
start Wanted start date of times series date string in format 'yyyy-mm-dd' yes
end Wanted end date of times series date string in format 'yyyy-mm-dd' yes
granulartiy Granularity of the output time series 'daily', 'hourly', 'quarter_hourly' no, default 'hourly'
format Wanted output format of the time series 'json', 'xml', 'csv' no, default 'json'

Current Tags

  • 1.0.1                                ...           latest (2 years ago)

6 Versions

  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
  • 0.0.4                                ...           2 years ago
  • 0.0.3                                ...           2 years ago
  • 0.0.2                                ...           2 years ago
  • 0.0.1                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 5
Last Day 1
Last Week 0
Last Month 2
Dependencies (5)
Dev Dependencies (4)
Dependents (1)

Copyright 2014 - 2017 © taobao.org |