regon
TypeScript icon, indicating that this package has built-in type declarations

1.1.8 • Public • Published

REGON

Polish README

REGON is Polish company registry. This library is an interface connecting to BIR1.1 service.

Instalation

npm i regon or yarn add regon

Usage

First you need to obtain REGON API key (instruction).

Then:

// Typescript import
import { Regon } from 'Regon';
// CommonJS require
const Regon = require('Regon');
 
const regon = new Regon({ key: 'api_key' }); // or new Regon({ dev: true }) for testing purposes, key not required
 
const searchParameters: ParametryWyszukiwania = {
    Krs?: string,
    Krsy?: string[],
    Nip?: string,
    Nipy?: string[],
    Regon?: string,
    Regony14zn?: string[],
    Regony9zn?: string[]
};
 
regon.getCompanyData(searchParameters) // returns Promise
    .then( companyInfo => ... );

Readme

Keywords

Package Sidebar

Install

npm i regon

Weekly Downloads

14

Version

1.1.8

License

MIT

Unpacked Size

20.7 kB

Total Files

19

Last publish

Collaborators

  • mustafa115