Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
bir1-nextjs
Advanced tools
Readme
Simple node.js client library to Statistics Poland (GUS) information about companies api REGON
npm i bir1
import Bir from 'bir1'
const bir = new Bir()
await bir.login()
console.log(await bir.search({ nip: '5261040567' }))
/*
output:
{
regon: '011417295',
nip: '5261040567',
statusNip: null,
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: null,
typ: 'P',
silosID: '6',
dataZakonczeniaDzialalnosci: null,
miejscowoscPoczty: 'Warszawa'
}
*/
• new Bir(options?
)
Name | Type | Notes |
---|---|---|
options | Object | |
options.key? | string | production API key |
Note: by default it connects to non production GUS database using public default key. In order to connect to production database with current company data provide a key granted by GUS.
▸ login(): Promise
<void>
Promise
<void>
▸ search(query
): Promise
<any>
Name | Type | Notes |
---|---|---|
query | Object | |
query.nip? | string | |
query.regon? | string | |
query.krs? | string |
Promise
<any>
▸ report(query
): Promise
<any>
Name | Type | Notes |
---|---|---|
query | Object | |
query.regon | string | |
query.report | string | e.g.: BIR11OsPrawna |
See BIR1 original documentation for more report types.
Promise
<any>
▸ value(value
): Promise
<string>
Name | Type |
---|---|
value | string |
Promise
<string>
FAQs
GUS REGON api client
The npm package bir1-nextjs receives a total of 0 weekly downloads. As such, bir1-nextjs popularity was classified as not popular.
We found that bir1-nextjs demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.