1.0.1 • Published 8 years ago

ssb-repl v1.0.1

Weekly downloads
1
License
MIT
Repository
-
Last release
8 years ago

ssb-repl

Explore json-stat datasets from Statistics Norway in a node repl

Usage

Pass a SSB table id or path, then explore the data with the JSON-stat API

$ ssb-repl al/al03/aku/SBMENU422/MidlAnsattAar

> ds.Dataset(0).Dimension().map(e => e.label)
[ 'kjønn', 'alder', 'statistikkvariabel', 'år' ]

$ ssb-repl 07221

> ds.Dataset(0).Dimension().map(e => e.label)
[ 'region', 'boligtype', 'statistikkvariabel', 'kvartal' ]

Options:

--limit, -l                  Only fetch the first N values of each variable 
                             (to reduce size)                         [number]
--exclude-elimination, --ee  Ignore variables that can be eliminated 
                             (to reduce size)                         [boolean]
--metadata, -m               Only print metadata from the given table [boolean]
--query, -q                  Path to file that contains the JSON 
                             query you want to execute.              [string]
--debug, -d                  Enable debug logging                    [boolean]
--help                       Show help                               [boolean]