creditor-reference
v0.1.6
Published
creditor reference code builder and verification
Downloads
11
Readme
Bill Reference code build and validation
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') {
}
Browser UMD (All browsers)
<html>
<head>
<script crossorigin="anonymous" src="https://unpkg.com/[email protected]/dist/umd/index.js"></script>
</head>
<body>
<script>
console.log('verify', CreditorReference.verify('RF39111112222233333444445'));
</script>
</body>
</html>
Browser ESM (Modern browsers)
<html>
<head></head>
<body>
<script type="module">
import {verify} from 'https://unpkg.com/[email protected]/dist/esm/index.js';
console.log('verify', verify('RF39111112222233333444445'));
</script>
</body>
</html>