init
This commit is contained in:
21
node_modules/title-case/LICENSE
generated
vendored
Normal file
21
node_modules/title-case/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2014 Blake Embrey (hello@blakeembrey.com)
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
44
node_modules/title-case/README.md
generated
vendored
Normal file
44
node_modules/title-case/README.md
generated
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
# Title 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]
|
||||
|
||||
Title 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 title-case --save
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```javascript
|
||||
var titleCase = require('title-case');
|
||||
|
||||
titleCase('string') //=> "String"
|
||||
titleCase('PascalCase') //=> "Pascal Case"
|
||||
|
||||
titleCase('STRING', 'tr') //=> "Strıng"
|
||||
```
|
||||
|
||||
## Typings
|
||||
|
||||
Includes a [TypeScript definition](title-case.d.ts).
|
||||
|
||||
## License
|
||||
|
||||
MIT
|
||||
|
||||
[npm-image]: https://img.shields.io/npm/v/title-case.svg?style=flat
|
||||
[npm-url]: https://npmjs.org/package/title-case
|
||||
[downloads-image]: https://img.shields.io/npm/dm/title-case.svg?style=flat
|
||||
[downloads-url]: https://npmjs.org/package/title-case
|
||||
[travis-image]: https://img.shields.io/travis/blakeembrey/title-case.svg?style=flat
|
||||
[travis-url]: https://travis-ci.org/blakeembrey/title-case
|
||||
[coveralls-image]: https://img.shields.io/coveralls/blakeembrey/title-case.svg?style=flat
|
||||
[coveralls-url]: https://coveralls.io/r/blakeembrey/title-case?branch=master
|
45
node_modules/title-case/package.json
generated
vendored
Normal file
45
node_modules/title-case/package.json
generated
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
{
|
||||
"name": "title-case",
|
||||
"version": "2.1.1",
|
||||
"description": "Title case a string",
|
||||
"main": "title-case.js",
|
||||
"typings": "title-case.d.ts",
|
||||
"files": [
|
||||
"title-case.js",
|
||||
"title-case.d.ts",
|
||||
"LICENSE"
|
||||
],
|
||||
"scripts": {
|
||||
"lint": "standard",
|
||||
"test-std": "mocha -- -R spec --bail",
|
||||
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- -R spec --bail",
|
||||
"test": "npm run lint && npm run test-cov"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/blakeembrey/title-case.git"
|
||||
},
|
||||
"keywords": [
|
||||
"title",
|
||||
"case"
|
||||
],
|
||||
"author": {
|
||||
"name": "Blake Embrey",
|
||||
"email": "hello@blakeembrey.com",
|
||||
"url": "http://blakeembrey.me"
|
||||
},
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/blakeembrey/title-case/issues"
|
||||
},
|
||||
"homepage": "https://github.com/blakeembrey/title-case",
|
||||
"devDependencies": {
|
||||
"istanbul": "^0.4.3",
|
||||
"mocha": "^3.0.0",
|
||||
"standard": "^9.0.2"
|
||||
},
|
||||
"dependencies": {
|
||||
"no-case": "^2.2.0",
|
||||
"upper-case": "^1.0.3"
|
||||
}
|
||||
}
|
3
node_modules/title-case/title-case.d.ts
generated
vendored
Normal file
3
node_modules/title-case/title-case.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
declare function titleCase (value: string, locale?: string): string;
|
||||
|
||||
export = titleCase;
|
15
node_modules/title-case/title-case.js
generated
vendored
Normal file
15
node_modules/title-case/title-case.js
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
var noCase = require('no-case')
|
||||
var upperCase = require('upper-case')
|
||||
|
||||
/**
|
||||
* Title case a string.
|
||||
*
|
||||
* @param {string} value
|
||||
* @param {string} [locale]
|
||||
* @return {string}
|
||||
*/
|
||||
module.exports = function (value, locale) {
|
||||
return noCase(value, locale).replace(/^.| ./g, function (m) {
|
||||
return upperCase(m, locale)
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user