toid
v1.0.1
Published
Converts to an Id which is only lowercase alphanumeric characters.
Downloads
3
Maintainers
Readme
toId
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'