Skip to content
Dot case a string in JavaScript
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
.travis.yml Replace `sentence-case` with `no-case` core Jun 11, 2016
LICENSE
README.md
dot-case.d.ts
dot-case.js
package.json Update dependencies to enable Greenkeeper 🌴 (#5) May 6, 2017
test.js

README.md

Dot Case

NPM version NPM downloads Build status Test coverage Greenkeeper badge

Dot case a string.

Supports Unicode (non-ASCII characters) and non-string entities, such as objects with a toString property, numbers and booleans. Empty values (null and undefined) will result in an empty string.

Installation

npm install dot-case --save

Usage

var dotCase = require('dot-case')

dotCase('string')        //=> "string"
dotCase('camelCase')     //=> "camel.case"
dotCase('sentence case') //=> "sentence.case"

dotCase('MY STRING', 'tr') //=> "my.strıng"

Typings

Includes a TypeScript definition.

License

MIT

You can’t perform that action at this time.