GT2/GT2-iOS/node_modules/constant-case/README.md

45 lines
1.3 KiB
Markdown
Raw Normal View History

2018-02-12 17:26:06 +00:00
# Constant Case
[![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 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"
```
## Typings
Includes a [TypeScript definition](constant-case.d.ts).
## License
MIT
[npm-image]: https://img.shields.io/npm/v/constant-case.svg?style=flat
[npm-url]: https://npmjs.org/package/constant-case
[downloads-image]: https://img.shields.io/npm/dm/constant-case.svg?style=flat
[downloads-url]: https://npmjs.org/package/constant-case
[travis-image]: https://img.shields.io/travis/blakeembrey/constant-case.svg?style=flat
[travis-url]: https://travis-ci.org/blakeembrey/constant-case
[coveralls-image]: https://img.shields.io/coveralls/blakeembrey/constant-case.svg?style=flat
[coveralls-url]: https://coveralls.io/r/blakeembrey/constant-case?branch=master