Socket
Socket
Sign inDemoInstall

node-dsf

Package Overview
Dependencies
64
Maintainers
4
Versions
25
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    node-dsf

Look up data from DSF (Det sentrale folkeregisteret)


Version published
Weekly downloads
4
Maintainers
4
Install size
6.81 MB
Created
Weekly downloads
 

Readme

Source

Build Status js-standard-style

node-dsf

Node.js module for looking up data from DSF (Det sentrale folkeregister). DSF is register of residents in Norway.

To obtain login credentials and other permissions go to infotorg.no

Installation

From npm

$ npm i node-dsf

Usage

Promises

const dsfLookup = require('node-dsf')

const config = {
  url: 'http://ws-test.infotorg.no/xml/ErgoGroup/DetSentraleFolkeregister1_4/2015-08-10/DetSentraleFolkeregister1_4.wsdl',
// PROD  url: 'http://ws.infotorg.no/xml/ErgoGroup/DetSentraleFolkeregister1_4/2015-08-10/DetSentraleFolkeregister1_4.wsdl',
  namespaceBrukersesjon: 'http://ws.infotorg.no/xml/Admin/Brukersesjon/2006-07-07/Brukersesjon.xsd',
  distribusjonskanal: 'PTP',
  systemnavn: 'systemnavn',
  brukernavn: 'brukernavn',
  passord: 'passord'
}
const method = 'hentDetaljer' // See supported methods
const query = {
  saksref: 'your-reference',
  foedselsnr: '26118633333', // requires this or foedselsdato
  foedselsdato: '261186', // requires this or foedselsnr
  etternavn: 'Enge',
  fornavn: 'Jonas'
}
const options = {
  method,
  config,
  query
}

dsfLookup(options)
  .then(data => console.log(JSON.stringify(data)))
  .catch(error => console.error(error))

Callback

const dsfLookup = require('node-dsf')

const config = {
  url: 'http://ws-test.infotorg.no/xml/ErgoGroup/DetSentraleFolkeregister1_4/2015-08-10/DetSentraleFolkeregister1_4.wsdl',
// PROD  url: 'http://ws.infotorg.no/xml/ErgoGroup/DetSentraleFolkeregister1_4/2015-08-10/DetSentraleFolkeregister1_4.wsdl',
  namespaceBrukersesjon: 'http://ws.infotorg.no/xml/Admin/Brukersesjon/2006-07-07/Brukersesjon.xsd',
  distribusjonskanal: 'PTP',
  systemnavn: 'systemnavn',
  brukernavn: 'brukernavn',
  passord: 'passord'
}
const method = 'hentDetaljer' // See supported methods
const query = {
  saksref: 'your-reference',
  foedselsnr: '26118633333', // requires this or foedselsdato
  foedselsdato: '261186', // requires this or foedselsnr
  etternavn: 'Enge',
  fornavn: 'Jonas'
}
const options = {
  method,
  config,
  query
}

dsfLookup(options, function (error, data) {
  if (error) {
    console.error(error)
  }
  console.log(JSON.stringify(data))
})

Supported methods

You must get access to these methods from both skattedirektoratet and evry (see https://www.infotorg.no/)

(Don't be in a hurry)

  • hentDetaljer
  • hentDetaljer_v2
  • hentForeldre
  • hentForeldre_v2
  • hentRelatertePersoner
  • hentRelatertePersoner_v2
  • hentBarn
  • hentBarn_v2
  • hentEktefelle
  • hentEktefelle_v2
  • hentKjernefamilie
  • hentKjernefamilie_v2

License

MIT

Keywords

FAQs

Last updated on 28 Apr 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc