Wondering what’s next for npm?Check out our public roadmap! »

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 => ... );

Install

npm i regon

DownloadsWeekly Downloads

145

Version

1.1.8

License

MIT

Unpacked Size

20.7 kB

Total Files

19

Last publish

Collaborators

  • avatar