New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

bir1

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bir1

GUS REGON api client

1.0.1
Version published
Weekly downloads
251
-8.06%
Maintainers
1
Weekly downloads
 
Created

BIR1 - GUS REGON client

Simple node.js client library to Statistics Poland (GUS) information about companies api REGON

install

npm i bir1

usage

const Bir = require('bir1')

const bir = new Bir()
await bir.login()
console.log(await bir.search({ nip: '5261040567' }))

/*
output: 

{
  regon: 11417295,
  nip: 5261040567,
  statusNip: '',
  nazwa: 'T-MOBILE POLSKA SPÓŁKA AKCYJNA',
  wojewodztwo: 'MAZOWIECKIE',
  powiat: 'Warszawa',
  gmina: 'Mokotów',
  miejscowosc: 'Warszawa',
  kodPocztowy: '02-674',
  ulica: 'ul. Marynarska',
  nrNieruchomosci: 12,
  nrLokalu: '',
  typ: 'P',
  silosId: 6,
  dataZakonczeniaDzialalnosci: '',
  miejscowoscPoczty: 'Warszawa'
}
*/

By default it connects to non production database. In order to connect to production to get most up to date company data provide your key like this new Bir({ key: 'aabc123def567' })

FAQs

Package last updated on 21 Feb 2021

Did you know?

Socket

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