npm

Need private packages and team management tools?Check out npm Orgs. »

ssb

3.0.0 • Public • Published

Build Status Coverage Status 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

Keywords

none

install

npm i ssb

Downloadsweekly downloads

1

version

3.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability