https://github.com/dnrovs/rntrc-js
Library for decoding and generating Ukrainian taxpayer identification numbers
https://github.com/dnrovs/rntrc-js
ipn rnokpp tax tin ukraine
Last synced: 4 months ago
JSON representation
Library for decoding and generating Ukrainian taxpayer identification numbers
- Host: GitHub
- URL: https://github.com/dnrovs/rntrc-js
- Owner: dnrovs
- License: mit
- Created: 2025-07-05T14:49:40.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-07-31T19:11:53.000Z (12 months ago)
- Last Synced: 2025-09-01T23:47:19.101Z (11 months ago)
- Topics: ipn, rnokpp, tax, tin, ukraine
- Language: TypeScript
- Homepage: https://dnrovs.github.io/rntrc-js/
- Size: 170 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# rntrc-js




Library for decoding and generating Ukrainian taxpayer identification numbers.
**[Documentation](https://dnrovs.github.io/rntrc-js/)** | **[RNTRC on Ukrainian Wikipedia](https://uk.wikipedia.org/wiki/Реєстраційний_номер_облікової_картки_платника_податків)**
## Installation
```
npm i rntrc
```
## Importing
### ES Modules
```javascript
import Rntrc from 'rntrc'
```
### CommonJS
```javascript
const Rntrc = require('rntrc')
```
### Browser (CDN)
```html
```
### Browser (module)
```html
import Rntrc from 'https://unpkg.com/rntrc@1/dist/index.js'
```
## Usage
### Decoding
```javascript
const instance = new Rntrc(1234567899)
console.log(
instance.birthdate().toLocaleDateString(),
instance.gender()
)
```
### Generating
```javascript
const generated = Rntrc.generate({
month: 4,
gender: 'male'
})
console.log(generated)
```