https://github.com/mharj/creditor-reference
creditor reference code builder and verification
https://github.com/mharj/creditor-reference
creditor-reference typescript
Last synced: about 1 year ago
JSON representation
creditor reference code builder and verification
- Host: GitHub
- URL: https://github.com/mharj/creditor-reference
- Owner: mharj
- License: lgpl-3.0
- Created: 2018-12-08T08:37:33.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2025-03-27T07:10:03.000Z (about 1 year ago)
- Last Synced: 2025-03-27T08:24:01.426Z (about 1 year ago)
- Topics: creditor-reference, typescript
- Language: TypeScript
- Size: 547 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Bill Reference code build and validation  [](https://codeclimate.com/github/mharj/creditor-reference/maintainability) [](https://codeclimate.com/github/mharj/creditor-reference/test_coverage)
```javascript
console.log(build('99999 88888 77777 6666', 'FI'));
console.log(build('11111 22222 33333 44444 5', 'ISO'));
if (verify('RF39111112222233333444445') === true) {
}
if (verify('99999888887777766668') === true) {
}
if (type('RF32S0METE5T') === 'ISO') {
}
if (type('99999888887777766668') === 'FI') {
}
```
### NpmJS
```typescript
import {verify} from 'creditor-reference';
console.log('verify', verify('RF39111112222233333444445'));
```
### Browser ESM
```html
import {verify} from 'https://unpkg.com/creditor-reference@latest/dist/index.mjs';
console.log('verify', verify('RF39111112222233333444445'));
```
### Browser UMD (Legacy browsers, 0.1.6 last UMD build)
```html
console.log('verify', CreditorReference.verify('RF39111112222233333444445'));
```