initial commit
This commit is contained in:
21
node_modules/upper-case-first/LICENSE
generated
vendored
Normal file
21
node_modules/upper-case-first/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.
|
||||
42
node_modules/upper-case-first/README.md
generated
vendored
Normal file
42
node_modules/upper-case-first/README.md
generated
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
# Upper Case First
|
||||
|
||||
[![NPM version][npm-image]][npm-url]
|
||||
[![NPM downloads][downloads-image]][downloads-url]
|
||||
[![Build status][travis-image]][travis-url]
|
||||
[![Test coverage][coveralls-image]][coveralls-url]
|
||||
|
||||
Upper case the first character of 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 upper-case-first --save
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
var upperCaseFirst = require('upper-case-first')
|
||||
|
||||
upperCaseFirst(null) //=> ""
|
||||
upperCaseFirst('string') //=> "String"
|
||||
```
|
||||
|
||||
## Typings
|
||||
|
||||
Includes a [TypeScript definition](upper-case-first.d.ts).
|
||||
|
||||
## License
|
||||
|
||||
MIT
|
||||
|
||||
[npm-image]: https://img.shields.io/npm/v/upper-case-first.svg?style=flat
|
||||
[npm-url]: https://npmjs.org/package/upper-case-first
|
||||
[downloads-image]: https://img.shields.io/npm/dm/upper-case-first.svg?style=flat
|
||||
[downloads-url]: https://npmjs.org/package/upper-case-first
|
||||
[travis-image]: https://img.shields.io/travis/blakeembrey/upper-case-first.svg?style=flat
|
||||
[travis-url]: https://travis-ci.org/blakeembrey/upper-case-first
|
||||
[coveralls-image]: https://img.shields.io/coveralls/blakeembrey/upper-case-first.svg?style=flat
|
||||
[coveralls-url]: https://coveralls.io/r/blakeembrey/upper-case-first?branch=master
|
||||
48
node_modules/upper-case-first/package.json
generated
vendored
Normal file
48
node_modules/upper-case-first/package.json
generated
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
{
|
||||
"name": "upper-case-first",
|
||||
"version": "1.1.2",
|
||||
"description": "Upper case the first character of a string",
|
||||
"main": "upper-case-first.js",
|
||||
"typings": "upper-case-first.d.ts",
|
||||
"files": [
|
||||
"upper-case-first.js",
|
||||
"upper-case-first.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/upper-case-first.git"
|
||||
},
|
||||
"keywords": [
|
||||
"cases",
|
||||
"first",
|
||||
"upper",
|
||||
"uppercase",
|
||||
"case"
|
||||
],
|
||||
"author": {
|
||||
"name": "Blake Embrey",
|
||||
"email": "hello@blakeembrey.com",
|
||||
"url": "http://blakeembrey.me"
|
||||
},
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/blakeembrey/upper-case-first/issues"
|
||||
},
|
||||
"homepage": "https://github.com/blakeembrey/upper-case-first",
|
||||
"devDependencies": {
|
||||
"istanbul": "^0.3.0",
|
||||
"mocha": "^2.2.1",
|
||||
"pre-commit": "^1.0.6",
|
||||
"standard": "^3.3.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"upper-case": "^1.1.1"
|
||||
}
|
||||
}
|
||||
3
node_modules/upper-case-first/upper-case-first.d.ts
generated
vendored
Normal file
3
node_modules/upper-case-first/upper-case-first.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
declare function upperCaseFirst (value: string, locale?: string): string;
|
||||
|
||||
export = upperCaseFirst;
|
||||
17
node_modules/upper-case-first/upper-case-first.js
generated
vendored
Normal file
17
node_modules/upper-case-first/upper-case-first.js
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
var upperCase = require('upper-case')
|
||||
|
||||
/**
|
||||
* Upper case the first character of a string.
|
||||
*
|
||||
* @param {String} str
|
||||
* @return {String}
|
||||
*/
|
||||
module.exports = function (str, locale) {
|
||||
if (str == null) {
|
||||
return ''
|
||||
}
|
||||
|
||||
str = String(str)
|
||||
|
||||
return upperCase(str.charAt(0), locale) + str.substr(1)
|
||||
}
|
||||
Reference in New Issue
Block a user