1.0.1 • Published 2 years ago

toidentifier v1.0.1

Weekly downloads
16,897,482
License
MIT
Repository
github
Last release
2 years ago

toidentifier

NPM Version NPM Downloads Build Status Test Coverage

Convert a string of words to a JavaScript identifier

Install

This is a Node.js module available through the npm registry. Installation is done using the npm install command:

$ npm install toidentifier

Example

var toIdentifier = require('toidentifier')

console.log(toIdentifier('Bad Request'))
// => "BadRequest"

API

This CommonJS module exports a single default function: toIdentifier.

toIdentifier(string)

Given a string as the argument, it will be transformed according to the following rules and the new string will be returned:

  1. Split into words separated by space characters (0x20).
  2. Upper case the first character of each word.
  3. Join the words together with no separator.
  4. Remove all non-word ([0-9a-z_]) characters.

License

MIT

http-errorscomponennentteasy-select-rnchinjowwchinjowvuedragdropuploadimagesreact-native-bluetooth2killi8n-react-native-fast-imageextensible-node-serverrn-send-sms@arisageha/react-lazyload@arisageha/react-lazyload-fixreact-native-template-rfbaseinsurer-policyapiairscanairscan-examplebb-chatreact-native-esc-pos-sahaab@borisovart/atol-kkt-module@frxf/frxfdeneme323112@texttree/demo-bsa-reference-rcl@ntt_app/react-native-custom-notificationreact-native-custom-text-hwjamesreact-native-covid-sdkanime-randomreact-native-thanh-toast-library@thanhnguyen14797/react-native-thanh-toast-library@l1nyanm1ng/react-picture-viewercthpb-plugin-socialexpress-easy-staticreact-native-printer-brothersrn-pdf-reader-offlinereact-native-shekhar-bridge-testcogoportutilssoi.tekcolevibestliblevibestlib2levilibtest19levilibtest24levilibtest25levilibtest26levilibtest27levilibtest28levilibtest29wilscanner@oiti/documentoscopy-react-nativequoc-testreact-native-slider-kfnodejs-fileshareunblock-block-save-variableshexa-node-common@infinitebrahmanuniverse/nolb-toicclibyarntest@saaspe/componentshyperpass-sdkexpress-api-pack-tropea-bootstraapluminos-ui-corelizeknushiliyahaotadiesklif-ui-kitsklif-api@everything-registry/sub-chunk-2957jawwy-sdkjawwy_gamification_release@314oner_npm/universal-components-libraryreact-native-sphereuisphereuijawwy_libraryreact-native-credit-card-pkgondp149-tablesklif-uireact-native-jawwy_sample@geeky-apo/react-native-advanced-clipboardlink-tyy2828ka-flow.jslitepie-datepicker-gabeleviapitest1levicommontestlevicommontest1levicotestlevilibtest15levilibtest16levilibtest17levilibtest18levilibtest21levilibtest22levilibtest23levilibtest3levilibtest4levilibtest5levilibtest6levilibtest7levilibtest8levilibtest9levimultiplatform10levimultiplatformtestlevimultitestlevikotlinlib
1.0.1

2 years ago

1.0.0

6 years ago

0.0.1

6 years ago