README
to-js-identifier
Convert any string (even reserved words) to a valid javascript identifier.
Useful when writing compile to JS languages.
var toId = require('to-js-identifier');
//valid ids just go right through
toId('foo') === 'foo'
//convert your string to a valid js identifier
toId('not-js') === 'not$45$js'
//as use can see it wraps invalid chars with '