1.0.1 • Published 10 years ago

toid v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
10 years ago

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