aboutsummaryrefslogtreecommitdiff
path: root/node_modules/camelcase-keys
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/camelcase-keys')
-rw-r--r--node_modules/camelcase-keys/index.js12
-rw-r--r--node_modules/camelcase-keys/license21
-rw-r--r--node_modules/camelcase-keys/node_modules/camelcase/index.js56
-rw-r--r--node_modules/camelcase-keys/node_modules/camelcase/license21
-rw-r--r--node_modules/camelcase-keys/node_modules/camelcase/package.json39
-rw-r--r--node_modules/camelcase-keys/node_modules/camelcase/readme.md57
-rw-r--r--node_modules/camelcase-keys/package.json52
-rw-r--r--node_modules/camelcase-keys/readme.md54
8 files changed, 0 insertions, 312 deletions
diff --git a/node_modules/camelcase-keys/index.js b/node_modules/camelcase-keys/index.js
deleted file mode 100644
index 0eca08c84..000000000
--- a/node_modules/camelcase-keys/index.js
+++ /dev/null
@@ -1,12 +0,0 @@
-'use strict';
-var mapObj = require('map-obj');
-var camelCase = require('camelcase');
-
-module.exports = function (input, options) {
- options = options || {};
- var exclude = options.exclude || [];
- return mapObj(input, function (key, val) {
- key = exclude.indexOf(key) === -1 ? camelCase(key) : key;
- return [key, val];
- });
-};
diff --git a/node_modules/camelcase-keys/license b/node_modules/camelcase-keys/license
deleted file mode 100644
index 654d0bfe9..000000000
--- a/node_modules/camelcase-keys/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/camelcase-keys/node_modules/camelcase/index.js b/node_modules/camelcase-keys/node_modules/camelcase/index.js
deleted file mode 100644
index 929facb62..000000000
--- a/node_modules/camelcase-keys/node_modules/camelcase/index.js
+++ /dev/null
@@ -1,56 +0,0 @@
-'use strict';
-
-function preserveCamelCase(str) {
- var isLastCharLower = false;
-
- for (var i = 0; i < str.length; i++) {
- var c = str.charAt(i);
-
- if (isLastCharLower && (/[a-zA-Z]/).test(c) && c.toUpperCase() === c) {
- str = str.substr(0, i) + '-' + str.substr(i);
- isLastCharLower = false;
- i++;
- } else {
- isLastCharLower = (c.toLowerCase() === c);
- }
- }
-
- return str;
-}
-
-module.exports = function () {
- var str = [].map.call(arguments, function (str) {
- return str.trim();
- }).filter(function (str) {
- return str.length;
- }).join('-');
-
- if (!str.length) {
- return '';
- }
-
- if (str.length === 1) {
- return str;
- }
-
- if (!(/[_.\- ]+/).test(str)) {
- if (str === str.toUpperCase()) {
- return str.toLowerCase();
- }
-
- if (str[0] !== str[0].toLowerCase()) {
- return str[0].toLowerCase() + str.slice(1);
- }
-
- return str;
- }
-
- str = preserveCamelCase(str);
-
- return str
- .replace(/^[_.\- ]+/, '')
- .toLowerCase()
- .replace(/[_.\- ]+(\w|$)/g, function (m, p1) {
- return p1.toUpperCase();
- });
-};
diff --git a/node_modules/camelcase-keys/node_modules/camelcase/license b/node_modules/camelcase-keys/node_modules/camelcase/license
deleted file mode 100644
index 654d0bfe9..000000000
--- a/node_modules/camelcase-keys/node_modules/camelcase/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/camelcase-keys/node_modules/camelcase/package.json b/node_modules/camelcase-keys/node_modules/camelcase/package.json
deleted file mode 100644
index 6cee2b520..000000000
--- a/node_modules/camelcase-keys/node_modules/camelcase/package.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "name": "camelcase",
- "version": "2.1.1",
- "description": "Convert a dash/dot/underscore/space separated string to camelCase: foo-bar → fooBar",
- "license": "MIT",
- "repository": "sindresorhus/camelcase",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "http://sindresorhus.com"
- },
- "engines": {
- "node": ">=0.10.0"
- },
- "scripts": {
- "test": "xo && ava"
- },
- "files": [
- "index.js"
- ],
- "keywords": [
- "camelcase",
- "camel-case",
- "camel",
- "case",
- "dash",
- "hyphen",
- "dot",
- "underscore",
- "separator",
- "string",
- "text",
- "convert"
- ],
- "devDependencies": {
- "ava": "*",
- "xo": "*"
- }
-}
diff --git a/node_modules/camelcase-keys/node_modules/camelcase/readme.md b/node_modules/camelcase-keys/node_modules/camelcase/readme.md
deleted file mode 100644
index 080b2a103..000000000
--- a/node_modules/camelcase-keys/node_modules/camelcase/readme.md
+++ /dev/null
@@ -1,57 +0,0 @@
-# camelcase [![Build Status](https://travis-ci.org/sindresorhus/camelcase.svg?branch=master)](https://travis-ci.org/sindresorhus/camelcase)
-
-> Convert a dash/dot/underscore/space separated string to camelCase: `foo-bar` → `fooBar`
-
-
-## Install
-
-```
-$ npm install --save camelcase
-```
-
-
-## Usage
-
-```js
-const camelCase = require('camelcase');
-
-camelCase('foo-bar');
-//=> 'fooBar'
-
-camelCase('foo_bar');
-//=> 'fooBar'
-
-camelCase('Foo-Bar');
-//=> 'fooBar'
-
-camelCase('--foo.bar');
-//=> 'fooBar'
-
-camelCase('__foo__bar__');
-//=> 'fooBar'
-
-camelCase('foo bar');
-//=> 'fooBar'
-
-console.log(process.argv[3]);
-//=> '--foo-bar'
-camelCase(process.argv[3]);
-//=> 'fooBar'
-
-camelCase('foo', 'bar');
-//=> 'fooBar'
-
-camelCase('__foo__', '--bar');
-//=> 'fooBar'
-```
-
-
-## Related
-
-- [decamelize](https://github.com/sindresorhus/decamelize) - The inverse of this module
-- [uppercamelcase](https://github.com/SamVerschueren/uppercamelcase) - Like this module, but to PascalCase instead of camelCase
-
-
-## License
-
-MIT © [Sindre Sorhus](http://sindresorhus.com)
diff --git a/node_modules/camelcase-keys/package.json b/node_modules/camelcase-keys/package.json
deleted file mode 100644
index 44a34de28..000000000
--- a/node_modules/camelcase-keys/package.json
+++ /dev/null
@@ -1,52 +0,0 @@
-{
- "name": "camelcase-keys",
- "version": "2.1.0",
- "description": "Convert object keys to camelCase",
- "license": "MIT",
- "repository": "sindresorhus/camelcase-keys",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "http://sindresorhus.com"
- },
- "engines": {
- "node": ">=0.10.0"
- },
- "scripts": {
- "test": "xo && ava"
- },
- "files": [
- "index.js"
- ],
- "keywords": [
- "map",
- "obj",
- "object",
- "key",
- "keys",
- "value",
- "values",
- "val",
- "iterate",
- "camelcase",
- "camel-case",
- "camel",
- "case",
- "dash",
- "hyphen",
- "dot",
- "underscore",
- "separator",
- "string",
- "text",
- "convert"
- ],
- "devDependencies": {
- "ava": "*",
- "xo": "*"
- },
- "dependencies": {
- "camelcase": "^2.0.0",
- "map-obj": "^1.0.0"
- }
-}
diff --git a/node_modules/camelcase-keys/readme.md b/node_modules/camelcase-keys/readme.md
deleted file mode 100644
index ca373287e..000000000
--- a/node_modules/camelcase-keys/readme.md
+++ /dev/null
@@ -1,54 +0,0 @@
-# camelcase-keys [![Build Status](https://travis-ci.org/sindresorhus/camelcase-keys.svg?branch=master)](https://travis-ci.org/sindresorhus/camelcase-keys)
-
-> Convert object keys to camelCase using [`camelcase`](https://github.com/sindresorhus/camelcase)
-
-
-## Install
-
-```
-$ npm install --save camelcase-keys
-```
-
-
-## Usage
-
-```js
-const camelcaseKeys = require('camelcase-keys');
-
-camelcaseKeys({'foo-bar': true});
-//=> {fooBar: true}
-
-
-const argv = require('minimist')(process.argv.slice(2));
-//=> {_: [], 'foo-bar': true}
-
-camelcaseKeys(argv);
-//=> {_: [], fooBar: true}
-```
-
-
-## API
-
-### camelcaseKeys(input, [options])
-
-#### input
-
-Type: `object`
-
-Object to camelCase.
-
-#### options
-
-Type: `object`
-
-##### exclude
-
-Type: `array`
-Default: `[]`
-
-Exclude keys from being camelCased.
-
-
-## License
-
-MIT © [Sindre Sorhus](http://sindresorhus.com)