react-scripts
Version:
Configuration and scripts for Create React App.
46 lines (31 loc) • 1.35 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 path-case --save
```
## Usage
```javascript
var pathCase = require('path-case')
pathCase('string') //=> "string"
pathCase('camelCase') //=> "camel/case"
pathCase('sentence case') //=> "sentence/case"
pathCase('MY STRING', 'tr') //=> "my.strıng"
```
Includes a [TypeScript definition](path-case.d.ts).
MIT
[ ]: https://img.shields.io/npm/v/path-case.svg?style=flat
[ ]: https://npmjs.org/package/path-case
[ ]: https://img.shields.io/npm/dm/path-case.svg?style=flat
[ ]: https://npmjs.org/package/path-case
[ ]: https://img.shields.io/travis/blakeembrey/path-case.svg?style=flat
[ ]: https://travis-ci.org/blakeembrey/path-case
[ ]: https://img.shields.io/coveralls/blakeembrey/path-case.svg?style=flat
[ ]: https://coveralls.io/r/blakeembrey/path-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]
Path