Skip to content

lukaslerche/urncode40js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

urncode40js

JavaScript library to encode and decode URN Code 40

How to use

import { encode, decode, validate } from "urncode40";

const text = "urn:example:12345";
const encoded = encode(text);
if (!encoded) {
    throw new Error("Encoding failed");
}
const isValid = validate(encoded);
const decoded = decode(encoded); 

About

JavaScript library to encode and decode URN Code 40

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors