ssb

4.0.2 • Public • Published

js-standard-style

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

Readme

Keywords

none

Package Sidebar

Install

npm i ssb

Weekly Downloads

0

Version

4.0.2

License

MIT

Unpacked Size

10.1 kB

Total Files

11

Last publish

Collaborators

  • zrrrzzt