react-scripts
Version:
Configuration and scripts for Create React App.
45 lines (30 loc) • 1.36 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 constant-case --save
```
## Usage
```javascript
var constantCase = require('constant-case')
constantCase('string') //=> "STRING"
constantCase('PascalCase') //=> "PASCAL_CASE"
constantCase('myString', 'tr') //=> "MY_STRİNG"
```
Includes a [TypeScript definition](constant-case.d.ts).
MIT
[ ]: https://img.shields.io/npm/v/constant-case.svg?style=flat
[ ]: https://npmjs.org/package/constant-case
[ ]: https://img.shields.io/npm/dm/constant-case.svg?style=flat
[ ]: https://npmjs.org/package/constant-case
[ ]: https://img.shields.io/travis/blakeembrey/constant-case.svg?style=flat
[ ]: https://travis-ci.org/blakeembrey/constant-case
[ ]: https://img.shields.io/coveralls/blakeembrey/constant-case.svg?style=flat
[ ]: https://coveralls.io/r/blakeembrey/constant-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]
Constant