JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 92316
  • Score
    100M100P100Q158462F
  • License MIT

Convert a string into camel case style by providing the separators.

Package Exports

  • camelo

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (camelo) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

camelo

Patreon PayPal AMA Version Downloads Get help on Codementor

Convert a string into camel case style by providing the separators.

☁️ Installation

$ npm i --save camelo

📋 Example

// Dependencies
const camelo = require("camelo");

console.log(camelo("default behavior_using*strange|chars"));
// => defaultBehaviorUsingStrangeChars

console.log(camelo("handling_underscores but not spaces", "_"));
// => handlingUnderscores but not spaces

console.log(camelo("uppercase first char as well", " ", true));
// => UppercaseFirstCharAsWell

console.log(camelo("handling*asterisk:and:colons", ["*", ":"]));
// => handlingAsteriskAndColons

📝 Documentation

camelo(input, regex, uc)

Converts an input string into camel-case style.

Params

  • String input: The input string.
  • Regex|String|Array regex: A regular expression, a string character or an array of strings used to split the input string.
  • Boolean uc: If true, it will uppercase the first word as well.

Return

  • String The camelized input value.

😋 How to contribute

Have an idea? Found a bug? See how to contribute.

💰 Donations

Another way to support the development of my open-source modules is to set up a recurring donation, via Patreon. 🚀

PayPal donations are appreciated too! Each dollar helps.

Thanks! ❤️

💫 Where is this library used?

If you are using this library in one of your projects, add it in this list. ✨

📜 License

MIT © Ionică Bizău