diff options
author | Florian Dold <florian.dold@gmail.com> | 2019-03-27 21:01:33 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2019-03-27 21:01:33 +0100 |
commit | cc97a4dd2a967e1c2273bd5f4c5f49a5bf2e2585 (patch) | |
tree | 92c5d88706a6ffc654d1b133618d357890e7096b /node_modules/upper-case | |
parent | 3771b4d6b67b34c130f3a9a1a15f42deefdb2eda (diff) |
remove node_modules
Diffstat (limited to 'node_modules/upper-case')
-rw-r--r-- | node_modules/upper-case/LICENSE | 21 | ||||
-rw-r--r-- | node_modules/upper-case/README.md | 45 | ||||
-rw-r--r-- | node_modules/upper-case/package.json | 51 | ||||
-rw-r--r-- | node_modules/upper-case/upper-case.d.ts | 3 | ||||
-rw-r--r-- | node_modules/upper-case/upper-case.js | 50 |
5 files changed, 0 insertions, 170 deletions
diff --git a/node_modules/upper-case/LICENSE b/node_modules/upper-case/LICENSE deleted file mode 100644 index 983fbe8ae..000000000 --- a/node_modules/upper-case/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -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. diff --git a/node_modules/upper-case/README.md b/node_modules/upper-case/README.md deleted file mode 100644 index 7e23978ca..000000000 --- a/node_modules/upper-case/README.md +++ /dev/null @@ -1,45 +0,0 @@ -# Upper 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] - -Upper 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 upper-case --save -``` - -## Usage - -```js -var upperCase = require('upper-case') - -upperCase(null) //=> "" -upperCase('string') //=> "STRING" -upperCase('string', 'tr') //=> "STRİNG" - -upperCase({ toString: function () { return 'test' } }) //=> "TEST" -``` - -## Typings - -Includes a [TypeScript definition](upper-case.d.ts). - -## License - -MIT - -[npm-image]: https://img.shields.io/npm/v/upper-case.svg?style=flat -[npm-url]: https://npmjs.org/package/upper-case -[downloads-image]: https://img.shields.io/npm/dm/upper-case.svg?style=flat -[downloads-url]: https://npmjs.org/package/upper-case -[travis-image]: https://img.shields.io/travis/blakeembrey/upper-case.svg?style=flat -[travis-url]: https://travis-ci.org/blakeembrey/upper-case -[coveralls-image]: https://img.shields.io/coveralls/blakeembrey/upper-case.svg?style=flat -[coveralls-url]: https://coveralls.io/r/blakeembrey/upper-case?branch=master diff --git a/node_modules/upper-case/package.json b/node_modules/upper-case/package.json deleted file mode 100644 index d21476ff0..000000000 --- a/node_modules/upper-case/package.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "name": "upper-case", - "version": "1.1.3", - "description": "Upper case a string", - "main": "upper-case.js", - "typings": "upper-case.d.ts", - "files": [ - "upper-case.js", - "upper-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" - }, - "standard": { - "ignore": [ - "coverage/**", - "node_modules/**", - "bower_components/**" - ] - }, - "repository": { - "type": "git", - "url": "git://github.com/blakeembrey/upper-case.git" - }, - "keywords": [ - "cases", - "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/issues" - }, - "homepage": "https://github.com/blakeembrey/upper-case", - "devDependencies": { - "istanbul": "^0.3.5", - "mocha": "^2.1.0", - "pre-commit": "^1.0.2", - "standard": "^2.4.5" - } -} diff --git a/node_modules/upper-case/upper-case.d.ts b/node_modules/upper-case/upper-case.d.ts deleted file mode 100644 index a3e83b3c6..000000000 --- a/node_modules/upper-case/upper-case.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -declare function upperCase (value: string, locale?: string): string; - -export = upperCase; diff --git a/node_modules/upper-case/upper-case.js b/node_modules/upper-case/upper-case.js deleted file mode 100644 index 768a38754..000000000 --- a/node_modules/upper-case/upper-case.js +++ /dev/null @@ -1,50 +0,0 @@ -/** - * Special language-specific overrides. - * - * Source: ftp://ftp.unicode.org/Public/UCD/latest/ucd/SpecialCasing.txt - * - * @type {Object} - */ -var LANGUAGES = { - tr: { - regexp: /[\u0069]/g, - map: { - '\u0069': '\u0130' - } - }, - az: { - regexp: /[\u0069]/g, - map: { - '\u0069': '\u0130' - } - }, - lt: { - regexp: /[\u0069\u006A\u012F]\u0307|\u0069\u0307[\u0300\u0301\u0303]/g, - map: { - '\u0069\u0307': '\u0049', - '\u006A\u0307': '\u004A', - '\u012F\u0307': '\u012E', - '\u0069\u0307\u0300': '\u00CC', - '\u0069\u0307\u0301': '\u00CD', - '\u0069\u0307\u0303': '\u0128' - } - } -} - -/** - * Upper case a string. - * - * @param {String} str - * @return {String} - */ -module.exports = function (str, locale) { - var lang = LANGUAGES[locale] - - str = str == null ? '' : String(str) - - if (lang) { - str = str.replace(lang.regexp, function (m) { return lang.map[m] }) - } - - return str.toUpperCase() -} |