react-scripts
Version:
Configuration and scripts for Create React App.
46 lines (31 loc) • 1.33 kB
Markdown
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
```javascript
var dotCase = require('dot-case')
dotCase('string') //=> "string"
dotCase('camelCase') //=> "camel.case"
dotCase('sentence case') //=> "sentence.case"
dotCase('MY STRING', 'tr') //=> "my.strıng"
```
Includes a [TypeScript definition](dot-case.d.ts).
MIT
[ ]: https://img.shields.io/npm/v/dot-case.svg?style=flat
[ ]: https://npmjs.org/package/dot-case
[ ]: https://img.shields.io/npm/dm/dot-case.svg?style=flat
[ ]: https://npmjs.org/package/dot-case
[ ]: https://img.shields.io/travis/blakeembrey/dot-case.svg?style=flat
[ ]: https://travis-ci.org/blakeembrey/dot-case
[ ]: https://img.shields.io/coveralls/blakeembrey/dot-case.svg?style=flat
[ ]: https://coveralls.io/r/blakeembrey/dot-case?branch=master
[![NPM version][npm-image]][npm-url]
[![NPM downloads][downloads-image]][downloads-url]
[![Build status][travis-image]][travis-url]
[![Test coverage][coveralls-image]][coveralls-url]
Dot