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
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: Iftrue, 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. ✨
emojic—Emoji in your Node.js command line apps.fs-file-tree—Get a directory file tree as an object.js-templates.class-export—Generate a sample class export code.js-templates.example—A template for example files.js-templates.function-export—Generate a sample function export code.tester-init—Init tests for tester.tilda—Tiny module for building command line tools.tilda-init—Init cli applications.