Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including jsonstat-conv with all npm packages installed. Try it out:

jsonstat-conv lists no main file and has no index.js, so it can't be directly required. If this is a mistake, please let us know. It may however contain internal files that you can require manually:

// require("jsonstat-conv/[??]")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

jsonstat-conv v1.0.3

JSON-stat Command Line Conversion Tools

JSON-stat Command Line Conversion Tools

The JSON-stat Command Line Conversion Tools contain command line tools for converting to and from JSON-stat. They support different JSON flavors, CSV (including CSV-stat) and SDMX-JSON. They are built upon the JSON-stat Javascript Toolkit and the JSON-stat Javascript Utilities Suite.

Installation

npm install -g jsonstat-conv

More in the Installation page.

Available commands

Check the API Reference page for more.

Example

Get unemployment rate time series by country from Eurostat and convert it to CSV.

curl "https://ec.europa.eu/eurostat/wdds/rest/data/v2.1/json/en/tesem120?precision=1" -o unr.jsonstat

jsonstat2csv unr.jsonstat unr.csv

Or using the stream interface:

curl "https://ec.europa.eu/eurostat/wdds/rest/data/v2.1/json/en/tesem120?precision=1" | jsonstat2csv > unr.csv -t

More in the Examples page.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free