Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bir1

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bir1

GUS REGON api client

  • 1.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
225
increased by164.71%
Maintainers
1
Weekly downloads
 
Created
Source

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')

(async () => {
  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 using public default key. In order to connect to production database with current company data provide the key like this new Bir({key: 'example123def567' })

Keywords

FAQs

Package last updated on 22 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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc