The module generates unique string prefixed with "p" symbol. Uniqueness is not guaranteed, but the probability of a match is very small. Bigger length - lower probability, dude.
npm i krbnid
var {krbnid} = require('krbnid'); var id = krbnid(6); // 6 - id;s length. Maximum 15. console.log(id); // Output is "p12345"