ssb
v4.0.2
Published
Use Statistics Norway's API
Downloads
5
Readme
ssb
Node.js/CLI app for Statistics Norway’s API
The data is available through the NLOD License
Installation
$ npm install ssb
Or globally if you want to use the CLI app
$ npm install ssb -g
Usage - Module
Pass an object with params.
dataset ID of dataset required
format Format of response. csv og json (default)
lang Language of response. en or no (default)
var ssb = require('ssb')
var options = {dataset: '1120'}
ssb(options, function (error, data) {
if (error) {
console.error(error)
} else {
console.log(data)
}
})
Usage - CLI
$ ssb --dataset=<dataset>
Optional supply other arguments.
See http://www.ssb.no/en/omssb/tjenester-og-verktoy/api/brukerveiledning for details
$ ssb --dataset=<dataset> --format=<json|csv> --lang=<no|en>`
Test
$ npm test
License
MIT