toid

1.0.1 • Public • Published

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

Package Sidebar

Install

npm i toid

Weekly Downloads

2

Version

1.0.1

License

MIT

Last publish

Collaborators

  • creaturephil