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 - npm Package Compare versions

Comparing version 1.2.3 to 1.2.5

2

package.json
{
"name": "bir1",
"version": "1.2.3",
"version": "1.2.5",
"description": "GUS REGON api client",

@@ -5,0 +5,0 @@ "keywords": [

@@ -1,8 +0,9 @@

# BIR1 - GUS REGON client #
# BIR1 - GUS REGON client
Simple node.js client library to [Statistics
Poland](https://en.wikipedia.org/wiki/Statistics_Poland) (GUS) information about
companies [api REGON](https://api.stat.gov.pl/Home/RegonApi?lang=en)
Simple node.js client library to
[Statistics Poland](https://en.wikipedia.org/wiki/Statistics_Poland) (GUS)
information about companies
[api REGON](https://api.stat.gov.pl/Home/RegonApi?lang=en)
## install
## Install

@@ -13,3 +14,3 @@ ```bash

## usage
## Usage

@@ -45,7 +46,81 @@ ```javascript

*/
```
By default it connects to non production database using public default key. In
order to connect to production database with current company data provide your
key like this `new Bir({ key: 'example123def567' })`
## API
### constructor
• **new Bir**(`options?`)
#### Parameters
| Name | Type | Notes |
| -------------- | -------- | ------------------ |
| `options` | `Object` | |
| `options.key?` | `string` | production API key |
Note: By default it connects to non production database using public default
key. In order to connect to production database with current company data
provide your key.
### login
▸ **login**(): `Promise`<void\>
#### Returns
`Promise`<void\>
---
### search
▸ **search**(`query`): `Promise`<any\>
#### Parameters
| Name | Type | Notes |
| -------------- | -------- | ----- |
| `query` | `Object` | |
| `query.nip?` | `string` | |
| `query.regon?` | `string` | |
#### Returns
`Promise`<any\>
---
### report
▸ **report**(`query`): `Promise`<any\>
#### Parameters
| Name | Type | Notes |
| -------------- | -------- | --------------------- |
| `query` | `Object` | |
| `query.regon` | `string` | |
| `query.report` | `string` | e.g.: `BIR11OsPrawna` |
See BIR1 original documentation for more report types.
#### Returns
`Promise`<any\>
---
### value
▸ **value**(`value`): `Promise`<string\>
#### Parameters
| Name | Type |
| ------- | -------- |
| `value` | `string` |
#### Returns
`Promise`<string\>
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