Skip to content
/ ssb-repl Public

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

License

Notifications You must be signed in to change notification settings

jarib/ssb-repl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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]

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published