treasuryiojs
This is a treasury.io client for JavaScript. It can return a csv
or a json
response depending on whether you pass either string as the second argument..
Install
npm install --save treasuryio
In NodeJS
json
response
Run with a var treasuryio =
csv
response
Run with a var treasuryio =
In the browser
The usage is exactly the same in the browser except you don't need the line var treasuryio = require('treasuryio')
. The only catch is you need to load the dsv module in your HTML like so:
You can grab copy this file from here.
Test
To test that it works in the browser, open this page.
You should see the first ten rows of of t1
, Operating Cash Balance.
To test that it works in node, run
npm installnpm test
It should print the first ten rows from t1
, "Operating Cash Balance" as csv and json.