mirror of
https://github.com/morhetz/gruvbox.git
synced 2025-11-16 15:23:47 -05:00
chore(package): re-init package with commitizen and standard-release
This commit is contained in:
15
node_modules/modify-values/index.js
generated
vendored
Normal file
15
node_modules/modify-values/index.js
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
'use strict';
|
||||
module.exports = function (obj, modifier) {
|
||||
var key;
|
||||
var val;
|
||||
var ret = {};
|
||||
var keys = Object.keys(Object(obj));
|
||||
|
||||
for (var i = 0; i < keys.length; i++) {
|
||||
key = keys[i];
|
||||
val = obj[key];
|
||||
ret[key] = modifier(val, key);
|
||||
}
|
||||
|
||||
return ret;
|
||||
};
|
||||
21
node_modules/modify-values/license
generated
vendored
Normal file
21
node_modules/modify-values/license
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
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.
|
||||
36
node_modules/modify-values/package.json
generated
vendored
Normal file
36
node_modules/modify-values/package.json
generated
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"name": "modify-values",
|
||||
"version": "1.0.1",
|
||||
"description": "Modify the values of an object",
|
||||
"license": "MIT",
|
||||
"repository": "sindresorhus/modify-values",
|
||||
"author": {
|
||||
"name": "Sindre Sorhus",
|
||||
"email": "sindresorhus@gmail.com",
|
||||
"url": "sindresorhus.com"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "ava"
|
||||
},
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"keywords": [
|
||||
"object",
|
||||
"assign",
|
||||
"extend",
|
||||
"properties",
|
||||
"values",
|
||||
"val",
|
||||
"transform",
|
||||
"transformation",
|
||||
"map",
|
||||
"modify"
|
||||
],
|
||||
"devDependencies": {
|
||||
"ava": "*"
|
||||
}
|
||||
}
|
||||
51
node_modules/modify-values/readme.md
generated
vendored
Normal file
51
node_modules/modify-values/readme.md
generated
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
# modify-values [](https://travis-ci.org/sindresorhus/modify-values)
|
||||
|
||||
> Modify the values of an object
|
||||
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install --save modify-values
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
var modifyValues = require('modify-values');
|
||||
|
||||
modifyValues({foo: 'UNICORN'}, function (value, key) {
|
||||
return value.toLowerCase();
|
||||
});
|
||||
//=> {foo: 'unicorn'}
|
||||
```
|
||||
|
||||
|
||||
## API
|
||||
|
||||
### modifyValues(input, modifier)
|
||||
|
||||
Modifies the values and returns a new object.
|
||||
|
||||
#### input
|
||||
|
||||
*Required*
|
||||
Type: `object`
|
||||
|
||||
#### modifier(value, key)
|
||||
|
||||
*Required*
|
||||
Type: `function`
|
||||
|
||||
Gets the value and key for each item and is expected to return the new value.
|
||||
|
||||
|
||||
## Related
|
||||
|
||||
See [`modify-keys`](https://github.com/sindresorhus/modify-keys) for modifying the keys of an object.
|
||||
|
||||
|
||||
## License
|
||||
|
||||
MIT © [Sindre Sorhus](http://sindresorhus.com)
|
||||
Reference in New Issue
Block a user