Skip to content

A Javascript NPM package/module that converts a dash/dot/underscore/space separated string to camelCase or PascalCase.

Notifications You must be signed in to change notification settings

ebosetalee/camelCase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CAMEL CASE

A Javascript NPM package/module that converts a dash/dot/underscore/space separated string to camelCase or PascalCase.

Ex:

"foo-bar" becomes "fooBar"

Examples of how the module should be used.

const camelCase = require("@ebosetalee/camelcase");

camelCase("foo-bar");
//=> "fooBar"

camelCase("foo_bar");
//=> "fooBar"

camelCase("Foo-Bar");
//=> "fooBar"

camelCase("Foo-Bar", { pascalCase: true });
//=> "FooBar"

camelCase("--foo.bar", { pascalCase: false });
//=> "fooBar"

camelCase("Foo-BAR", { uppercase: true });
//=> "fooBAR"

camelCase("fooBAR", { pascalCase: true, uppercase: true }));
//=> "FooBAR"

camelCase("foo bar");
//=> "fooBar"

About

A Javascript NPM package/module that converts a dash/dot/underscore/space separated string to camelCase or PascalCase.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published