Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Remove an existing case from a string.
JavaScript CSS
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
test
.gitignore
History.md
Makefile
Readme.md
component.json
index.js
package.json

Readme.md

to-no-case

Remove an existing case from a string.

Installation

$ component install ianstormtaylor/to-no-case
$ npm install to-no-case

Example

var clean = require('to-no-case');

clean('camelCase');       // "camel case"
clean('snake_case');      // "snake case"
clean('slug-case');       // "slug case"
clean('Title of Case');   // "title of case"
clean('Sentence case.');  // "sentence case."

API

toNoCase(string)

Returns the string with an existing case removed.

License

MIT

Something went wrong with that request. Please try again.