1.0.0 • Published 5 years ago

@striven-erp/reportbuilder-js v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

Striven Report Builder

A Node.js client to handle your Striven Reports

Getting Started

$ npm install @striven-erp/reportbuilder-js
const reportbuilder = require('@striven-erp/reportbuilder-js');

const REPORT = 'https://api.test.striven.com/v2/custom-report/ea014330b4654400a9bd2b94fbf70e583def90e78f6647d483c6a817892ca0bf';

async function start() {
  const customers = await reportbuilder(REPORT);

  console.log(customers.getData());
}

start();

Methods

MethodReturnsDescription
getDataArrayReturns an array of the report data
toJson(String)StringCreate a file at the path parameter and returns the path to the file
mapFunctionMaps over the report data JavaScript Map