Converts to an Id which is only lowercase alphanumeric characters.

Version 1.0.1 License MIT Vulnerabilities 0
toid has no homepage
toid JS library on GitHub
toid JS library on npm
Download toid JS library
Keywords
idtoIdconvertuidusername
<script type="module"> import toid from 'https://cdn.jsdelivr.net/npm/toid@1.0.1/+esm' </script>
Learn more

toId Build Status

Converts to an Id which is only lowercase alphanumeric characters.

Install

$ npm install --save toid

Usage

var toId = require('toid');

toId('Some Username-123');
// 'someusername123'

toId('Crystal★Tempo');
// 'crystaltempo'

toId('Eden (Saiyan)');
// 'edensaiyan'

toId('Some_Mega_Man');
// 'somemegaman'

toId('BatMan');
// 'batman'

License

MIT