-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
executable file
·104 lines (104 loc) · 6.68 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
{
"_args": [
[
{
"raw": "object-extended@0.0.7",
"scope": null,
"escapedName": "object-extended",
"name": "object-extended",
"rawSpec": "0.0.7",
"spec": "0.0.7",
"type": "version"
},
"/Users/willsu/github_repo/major-studio_01/quantitative data_sketch/p5_sketch/data/node_modules/fast-csv"
]
],
"_from": "object-extended@0.0.7",
"_id": "object-extended@0.0.7",
"_inCache": true,
"_location": "/object-extended",
"_npmUser": {
"name": "damartin",
"email": "doug@dougamartin.com"
},
"_npmVersion": "1.2.23",
"_phantomChildren": {},
"_requested": {
"raw": "object-extended@0.0.7",
"scope": null,
"escapedName": "object-extended",
"name": "object-extended",
"rawSpec": "0.0.7",
"spec": "0.0.7",
"type": "version"
},
"_requiredBy": [
"/fast-csv"
],
"_resolved": "https://registry.npmjs.org/object-extended/-/object-extended-0.0.7.tgz",
"_shasum": "84fd23f56b15582aeb3e88b05cb55d2432d68a33",
"_shrinkwrap": null,
"_spec": "object-extended@0.0.7",
"_where": "/Users/willsu/github_repo/major-studio_01/quantitative data_sketch/p5_sketch/data/node_modules/fast-csv",
"author": {
"name": "Doug Martin"
},
"bugs": {
"url": "https://github.com/doug-martin/object-extended/issues"
},
"dependencies": {
"array-extended": "~0.0.4",
"extended": "~0.0.3",
"is-extended": "~0.0.3"
},
"description": "Additional object extensions with a chainable api",
"devDependencies": {
"grunt": "~0.4.1",
"grunt-contrib-jshint": "~0.4.0",
"grunt-contrib-uglify": "~0.2.0",
"grunt-it": "~0.3.1",
"it": "~0.2.0"
},
"directories": {},
"dist": {
"shasum": "84fd23f56b15582aeb3e88b05cb55d2432d68a33",
"tarball": "https://registry.npmjs.org/object-extended/-/object-extended-0.0.7.tgz"
},
"homepage": "https://github.com/doug-martin/object-extended#readme",
"keywords": [
"Object",
"extender",
"utilities"
],
"license": "MIT",
"main": "index.js",
"maintainers": [
{
"name": "damartin",
"email": "doug@dougamartin.com"
}
],
"name": "object-extended",
"optionalDependencies": {},
"readme": "[![Build Status](https://travis-ci.org/doug-martin/object-extended.png?branch=master)](https://travis-ci.org/doug-martin/object-extended)\n\n[![browser support](https://ci.testling.com/doug-martin/object-extended.png)](https://ci.testling.com/doug-martin/object-extended)\n\n# object-extended\n\n`object-extended` is a Javascript library that can be used standalone or incorporated into [`extended`](https://github.com/doug-martin/extended)\n\n```javascript\nvar obj = require(\"object-extended\");\n```\n\nOr\n\n```javascript\nvar myextended = require(\"extended\")\n\t.register(require(\"object-extended\"));\n```\n\n## Installation\n\n```\nnpm install object-extended\n```\n\nOr [download the source](https://raw.github.com/doug-martin/object-extended/master/index.js) ([minified](https://raw.github.com/doug-martin/object-extended/master/object-extended.min.js))\n\n## Usage\n\n**`merge`**\n\nmerges the properties of one object into another.\n\n**Note** This method changes the original object.\n\n```javascript\n\nobj.merge({}, {a : \"a\"}, {b : \"b\"}, {c : \"c\"}); //{a : \"a\", b : \"b\", c : \"c\"});\n\n```\n\n**`extend`**\n\nMerges properties into a function prototype or delegates to `merge`.\n\n```\nvar MyObj = function () {\n};\nMyObj.prototype.test = true;\nobject.extend(MyObj, {test2: false, test3: \"hello\", test4: \"world\"});\n\nvar myOjb = new MyObj();\nmyObj.test2; //false\nmyObj.test3; //\"hello\"\nmyObj.test4; //\"world\"\n```\n\n**`deepMerge`**\n\nMerges objects together only overriding properties that are different.\n\n**Note**: this function takes a variable number of objects to merge\n\n```javascript\nvar myObj = {my : {cool : {property1 : 1, property2 : 2}}};\nobj.deepMerge(myObj, {my : {cool : {property3 : 3}}});\n\nmyObj.my.cool.property1; // 1\nmyObj.my.cool.property2; // 2\nmyObj.my.cool.property3; // 3\n\n```\n\nOr\n\n```javacript\nvar myObj = {my : {cool : {property1 : 1, property2 : 2}}};\nobj(myObj).deepMerge({my : {cool : {property3 : 3}}});\n\nmyObj.my.cool.property1; // 1\nmyObj.my.cool.property2; // 2\nmyObj.my.cool.property3; // 3\n```\n\n\n**`hash.forEach`**\n\nLoops through each k/v in a hash.\n\n```javascript\nvar myObj = {a : \"b\", c : \"d\", e : \"f\"};\nobj(myObj).forEach(function(value, key){\n console.log(value, key);\n});\n\nobj.hash.forEach(myObj, function(value, key){\n console.log(value, key);\n});\n```\n\n**`hash.filter`**\n\n\nFilters out key/value pairs in an object.\nFilters out key/value pairs that return a falsey value from the iterator.\n\n```javascript\nvar myObj = {a : \"b\", c : \"d\", e : \"f\"};\nobj(myObj).filter(function(value, key){\n return value == \"b\" || key === \"e\";\n}); //{a : \"b\", e : \"f\"};\n\nobj.hash.filter(myObj, function(value, key){\n return value == \"b\" || key === \"e\";\n}); //{a : \"b\", e : \"f\"};\n\n```\n\n\n**`hash.values`**\n\nReturns the values of a hash.\n\n```javascript\nvar myObj = {a : \"b\", c : \"d\", e : \"f\"};\nobj(myObj).values(); //[\"b\", \"d\", \"f\"]\n\nobj.values(myObj); //[\"b\", \"d\", \"f\"]\n\n```\n\n**`hash.keys`**\nReturns the keys of a hash.\n\n```javascript\nvar myObj = {a : \"b\", c : \"d\", e : \"f\"};\nobj(myObj).keys(); //[\"a\", \"c\", \"e\"]\n\nobj.keys(myObj); //[\"b\", \"d\", \"f\"]\n\n```\n\n**`hash.invert`**\n\n\nReturns a new hash that is the invert of the hash.\n\n```javascript\nvar myObj = {a : \"b\", c : \"d\", e : \"f\"};\nobj(myObj).invert(); //{b : \"a\", d : \"c\", f : \"e\"}\n\nobj.hash.invert(myObj); //{b : \"a\", d : \"c\", f : \"e\"}\n```\n\n**`hash.omit`**\n\n\nReturns a new hash that is the with the given keys omitted.\n\n```javascript\nvar myObj = {a : \"b\", c : \"d\", e : \"f\"};\nobj(myObj).omit(\"e\"); //{a : \"b\", c : \"d\"}\nobj(myObj).omit([\"c\", \"e\"]); //{a : \"b\"}\n\nobj.hash.omit(myObj, \"e\"); //{a : \"b\", c : \"d\"}\nobj.hash.omit(myObj, [\"c\", \"e\"]); //{a : \"b\"}\n```\n\n\n**`hash.toArray`**\n\nConverts a hash to an array.\n\n```javascript\nvar myObj = {a : \"b\", c : \"d\", e : \"f\"};\nobj(myObj).toArray(); //[[\"a\", \"b\"], [\"c\", \"d\"], [\"e\", \"f\"]]\n\nobj.hash.toArray(myObj); //[[\"a\", \"b\"], [\"c\", \"d\"], [\"e\", \"f\"]]\n```",
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/doug-martin/object-extended.git"
},
"scripts": {
"test": "it -r dot"
},
"testling": {
"files": "test/browserling.js",
"browsers": [
"ie/6..latest",
"chrome/20..latest",
"firefox/14..latest",
"safari/latest",
"iphone/6",
"ipad/6"
]
},
"version": "0.0.7"
}