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/plur | |
parent | 3771b4d6b67b34c130f3a9a1a15f42deefdb2eda (diff) | |
download | wallet-core-cc97a4dd2a967e1c2273bd5f4c5f49a5bf2e2585.tar.xz |
remove node_modules
Diffstat (limited to 'node_modules/plur')
-rw-r--r-- | node_modules/plur/index.js | 20 | ||||
-rw-r--r-- | node_modules/plur/license | 21 | ||||
-rw-r--r-- | node_modules/plur/package.json | 42 | ||||
-rw-r--r-- | node_modules/plur/readme.md | 67 |
4 files changed, 0 insertions, 150 deletions
diff --git a/node_modules/plur/index.js b/node_modules/plur/index.js deleted file mode 100644 index ed3f9b06b..000000000 --- a/node_modules/plur/index.js +++ /dev/null @@ -1,20 +0,0 @@ -'use strict'; -var irregularPlurals = require('irregular-plurals'); - -module.exports = function (str, plural, count) { - if (typeof plural === 'number') { - count = plural; - } - - if (str in irregularPlurals) { - plural = irregularPlurals[str]; - } else if (typeof plural !== 'string') { - plural = (str.replace(/(?:s|x|z|ch|sh)$/i, '$&e').replace(/([^aeiou])y$/i, '$1ie') + 's') - .replace(/i?e?s$/i, function (m) { - var isTailLowerCase = str.slice(-1) === str.slice(-1).toLowerCase(); - return isTailLowerCase ? m.toLowerCase() : m.toUpperCase(); - }); - } - - return count === 1 ? str : plural; -}; diff --git a/node_modules/plur/license b/node_modules/plur/license deleted file mode 100644 index 654d0bfe9..000000000 --- a/node_modules/plur/license +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.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/plur/package.json b/node_modules/plur/package.json deleted file mode 100644 index 6a7c051ff..000000000 --- a/node_modules/plur/package.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "name": "plur", - "version": "2.1.2", - "description": "Pluralize a word", - "license": "MIT", - "repository": "sindresorhus/plur", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=0.10.0" - }, - "scripts": { - "test": "xo && ava" - }, - "files": [ - "index.js" - ], - "keywords": [ - "plur", - "plural", - "plurals", - "pluralize", - "singular", - "count", - "word", - "string", - "str", - "irregular", - "noun", - "nouns" - ], - "dependencies": { - "irregular-plurals": "^1.0.0" - }, - "devDependencies": { - "ava": "*", - "xo": "*" - } -} diff --git a/node_modules/plur/readme.md b/node_modules/plur/readme.md deleted file mode 100644 index 40103d81a..000000000 --- a/node_modules/plur/readme.md +++ /dev/null @@ -1,67 +0,0 @@ -# plur [![Build Status](https://travis-ci.org/sindresorhus/plur.svg?branch=master)](https://travis-ci.org/sindresorhus/plur) - -> Pluralize a word - - -## Install - -``` -$ npm install --save plur -``` - - -## Usage - -```js -const plur = require('plur'); - -plur('unicorn', 4); -//=> 'unicorns' - -plur('puppy', 2); -//=> 'puppies' - -plur('box', 2); -//=> 'boxes' - -plur('cactus', 2); -//=> 'cacti' -``` - - -## API - -### plur(word, [plural], count) - -#### word - -Type: `string` - -Word to pluralize. - -#### plural - -Type: `string` -Default: - -- Irregular nouns will use this [list](https://github.com/sindresorhus/irregular-plurals/blob/master/irregular-plurals.json). -- Words ending in *s*, *x*, *z*, *ch*, *sh* will be pluralized with *-es* (eg. *foxes*). -- Words ending in *y* that are preceded by a consonant will be pluralized by replacing *y* with *-ies* (eg. *puppies*). -- All other words will have "s" added to the end (eg. *days*). - -Pluralized word. - -The plural suffix will match the case of the last letter in the word. - -This option is only for extreme edge-cases. You probably won't need it. - -#### count - -Type: `number` - -Count to determine whether to use singular or plural. - - -## License - -MIT © [Sindre Sorhus](http://sindresorhus.com) |