Convert a string of words to a JavaScript identifier
npm:
npm install toidentifier
yarn:
yarn add toidentifier
const toIdentifier = require('toidentifier');
console.log(toIdentifier('Bad Request'));
// outputs "BadRequest"
Name | Website |
---|---|
Douglas Christopher Wilson | |
Nick Baugh | http://niftylettuce.com/ |
MIT © Douglas Christopher Wilson