![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
node-iso11649
Advanced tools
ISO 11649:2009 RF creditor reference library for node
with NPM
npm install node-iso11649 --save
with Yarn
yarn add node-iso11649
RF creditor reference can be generated from existing reference.
Existing reference characteristics:
import { generate } from 'node-iso11649'
console.log(generate('12345 12345'))
// => RF451234512345
RF creditor reference can be generated also without existing reference. In that case epoch timestamp increased with random number and finnish checksum at the end is used.
NOTE: While this provides some level of randomness, uniqueness is not guaranteed. In production, it is best to use cryptographically secure random numbers at least as a part of the reference.
Example result:
import { generate } from 'node-iso11649'
console.log(generate())
// => RF4714508655422864
As creditor references are commonly displayed in groups of 4 characters
you can use the optional pretty
flag to format the returned value.
import { generate } from 'node-iso11649'
console.log(generate('12345 12345', {pretty: true}))
// => RF45 1234 5123 45
Valid RF creditor reference characteristics:
import { validate } from 'node-iso11649'
console.log(validate('RF4714508655422864'))
// => true
import { validate } from 'node-iso11649'
console.log(validate('RF00TEST'))
// => false
The reference part can be extracted from the RF creditor reference. This validates the entered RF creditor reference according to the 'Validating RF creditor reference'. It returns the reference string if valid and null if invalid.
import { parse } from 'node-iso11649'
console.log(parse('RF47 1450 8655 4228 64'))
// => 14508655422864
import { parse } from 'node-iso11649'
console.log(parse('RF00TEST'))
// => null
Run ESLint style checker.
npm run lint
Run unit tests
npm test
3.0.0 (2023-18-11)
BREAKING: Change generate function signature to have separate parameters for reference and options
substr
with slice
FAQs
ISO 11649:2009 creditor reference library for node
The npm package node-iso11649 receives a total of 0 weekly downloads. As such, node-iso11649 popularity was classified as not popular.
We found that node-iso11649 demonstrated a not healthy version release cadence and project activity because the last version was released 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.