npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

node-regon

v1.1.0

Published

A library for accessing data about businesses from the National Statistics Office in Poland. It can be used to access data stored in the National Court register using unique identifiers that each company has such as NIP (Tax Identification) and REGON (Sta

Downloads

1,564

Readme

Overview

A library for accessing data about businesses from the National Statistics Office in Poland. It can be used to access data stored in the National Court register using unique identifiers that each company has such as NIP (Tax Identification) and REGON (Statistical) numbers.

Features

  • find By NIP, REGON, and other params (check documentation on wyszukiwarka regon)
  • login,
  • logout,
  • getcaptcha,
  • sendCaptcha,
  • get system status vars,
  • !!! auto captcha detection and resolving with api anti-captcha.com - antigate (if antigateapi is not defined, it will return captcha value in response)

Installation

npm install --save node-regon

Usage Examples

First Import the library:

const Client = require('node-regon');

Then create a client:

let gus = Client.createClient({
    key: "HERE_PUT_YOUR_PRODUCTION_KEY",
    birVersion: '1.1', // by default 1
    captcha: {
      autofill: false,
      apiKey: "ANTIGATE_API"
    }
});

Finally, get basic information about NIP:

var companyInfoByNip = gus.findByNip("6762264686");

Additional Options For Creating a Client

  • sandbox: false, - default is true
  • autoLogin: false, - you can also run gis.login(), manually
  • sid: YOUR SESS ID, - if you want to pass your session id
  • captcha: { autofill: true, apiKey: "YOUR_ANTIGATE_API_KEY" }

See more code samples in examples/example.js

Documentation

Up to date documentation on fields and limitations of this API are accessible in Polish from this document on Technical Instruction for BIR1

©MIT licensed