node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »


denmark-parent-income Build Status

Get parent income mean and median given a schools institution number


npm install denmark-parent-income


On installation this module a CSV file containing data for parents income in 2012 and 2011. This is then parsed and stored as a JSON file.

const schools = require('denmark-parent-income')

schools is a Map object, with institution numbers as keys and associated information as values.

See for what institution numbers are.

schools().once('data', function (item) {
  // All money related values are in DKK and the brutto income 
  item = {
    "instnr": 101001,
    "2012_mean": 566930,
    "2012_median": 499169,
    "2011_mean": 580395,
    "children": 465


The source is this csv file: