JJUS is a set of high level functions.
It can be run on the server as a Node.js module. Type the following command to install:
npm install jsonstat-utils
The module has all the functionality of the client version except tbrowser().
The module's functionality is also available in the command line (install the JSON-stat Command Line Conversion Tools).
JJUS can also be run on a browser as a library and as an ECMAScript module.
In your webpage, link to your own copies of the json-stat.js and json-stat.utils.js files:
Or using a particular version in production:
While the JJT library works on any browser, the JJUS library requires a modern one. If you need to support very old browsers, provide polyfills for forEach, Array.indexOf, trim, find, findIndex and reduce (querySelector, querySelectorAll also required for tbrowser()).
Because the JJUS module requires the JJT module, you don't need to import JJT when you want to use JJT's JSONstat(). The JJUS module exposes JJT as JSONstatUtils.JSONstat:
The JJUS ECMAScript module works on any browser that support ECMAScript modules.
JJUS includes 7 functions:
- fromCSV() (JJT not required)
- fromSDMX() (JJT not required)
- fromTable() (JJT not required)
- tbrowser() (Not available in the Node.js module.)
In version 2.0.0, the JJUS interface was changed. The new interface is not backward compatible.
To check the JJUS version: