Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Convert a string to a space case.
JavaScript CSS
Branch: master

Readme.md

to-space-case

Convert a string to a space case.

Installation

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

Example

var space = require('to-space-case');

space('camelCase');  // "camel case"
space('snake_case'); // "snake case"
space('dot.case');   // "dot case"

API

toSpaceCase(string)

Returns the space-case variant of a string.

License

MIT

Something went wrong with that request. Please try again.