@jsmrcaga/keep
Version:
A simple password manager
15 lines (11 loc) • 337 B
JavaScript
const Utils = {};
Utils.UUID = () => {
function s4() {
return Math.floor((1 + Math.random()) * 0x10000).toString(16).substring(1);
}
return s4() + s4() + '-' + s4() + '-' + s4() + '-' + s4() + '-' + s4() + s4() + s4();
};
Utils.slugify = (string) => {
return string.replace(/\s/g, '_').toLowerCase();
};
module.exports = Utils;