seneca-brreg
v2.0.0
Published
Look up data from the Norwegian Entity Registry
Downloads
8
Readme
seneca-brreg
Look up data from the Norwegian Entity Registry.
This is a module for the Seneca microservices toolkit.
Installation
$ npm i seneca
$ npm i seneca-brreg
Usage
'use strict'
const seneca = require('seneca')()
const brreg = require('seneca-brreg')
seneca.use(brreg)
seneca.act('role: brreg, cmd: lookup', {query: '994528130'}, (error, data) => {
if (error) {
console.error(error)
} else {
console.log(data)
}
})
//=> [{entry}]