| 1 |
{ |
| 2 |
"_id": "static-extend", |
| 3 |
"_rev": "3-d927c2a1b5a4df7679c6ee94c0d0b4a9", |
| 4 |
"name": "static-extend", |
| 5 |
"description": "Adds a static `extend` method to a class, to simplify inheritance. Extends the static properties, prototype properties, and descriptors from a `Parent` constructor onto `Child` constructors.", |
| 6 |
"dist-tags": { |
| 7 |
"latest": "0.1.2" |
| 8 |
}, |
| 9 |
"versions": { |
| 10 |
"0.1.0": { |
| 11 |
"name": "static-extend", |
| 12 |
"description": "Adds a static `extend` method to a class, to simplify inheritance. Extends the static properties, prototype properties, and descriptors from a `Parent` constructor onto `Child` constructors.", |
| 13 |
"version": "0.1.0", |
| 14 |
"homepage": "https://github.com/jonschlinkert/static-extend", |
| 15 |
"author": { |
| 16 |
"name": "Jon Schlinkert", |
| 17 |
"url": "https://github.com/jonschlinkert" |
| 18 |
}, |
| 19 |
"repository": { |
| 20 |
"type": "git", |
| 21 |
"url": "git+https://github.com/jonschlinkert/static-extend.git" |
| 22 |
}, |
| 23 |
"bugs": { |
| 24 |
"url": "https://github.com/jonschlinkert/static-extend/issues" |
| 25 |
}, |
| 26 |
"license": "MIT", |
| 27 |
"files": [ |
| 28 |
"index.js" |
| 29 |
], |
| 30 |
"main": "index.js", |
| 31 |
"engines": { |
| 32 |
"node": ">=0.10.0" |
| 33 |
}, |
| 34 |
"scripts": { |
| 35 |
"test": "mocha" |
| 36 |
}, |
| 37 |
"dependencies": { |
| 38 |
"define-property": "^0.2.5" |
| 39 |
}, |
| 40 |
"devDependencies": { |
| 41 |
"gulp-format-md": "^0.1.7", |
| 42 |
"mocha": "^2.4.5" |
| 43 |
}, |
| 44 |
"keywords": [ |
| 45 |
"class", |
| 46 |
"ctor", |
| 47 |
"descriptor", |
| 48 |
"extend", |
| 49 |
"extends", |
| 50 |
"inherit", |
| 51 |
"inheritance", |
| 52 |
"merge", |
| 53 |
"method", |
| 54 |
"prop", |
| 55 |
"properties", |
| 56 |
"property", |
| 57 |
"prototype" |
| 58 |
], |
| 59 |
"verb": { |
| 60 |
"run": true, |
| 61 |
"toc": false, |
| 62 |
"layout": "default", |
| 63 |
"tasks": [ |
| 64 |
"readme" |
| 65 |
], |
| 66 |
"plugins": [ |
| 67 |
"gulp-format-md" |
| 68 |
], |
| 69 |
"reflinks": [ |
| 70 |
"verb" |
| 71 |
], |
| 72 |
"lint": { |
| 73 |
"reflinks": true |
| 74 |
} |
| 75 |
}, |
| 76 |
"gitHead": "b370e8f6e4e7fddba23916faa8bdb446516baad6", |
| 77 |
"_id": "[email protected]", |
| 78 |
"_shasum": "cddd8ec54d4c52ba631c79871275cfad85744ad8", |
| 79 |
"_from": ".", |
| 80 |
"_npmVersion": "3.6.0", |
| 81 |
"_nodeVersion": "5.5.0", |
| 82 |
"_npmUser": { |
| 83 |
"name": "jonschlinkert", |
| 84 |
"email": "[email protected]" |
| 85 |
}, |
| 86 |
"maintainers": [ |
| 87 |
{ |
| 88 |
"name": "jonschlinkert", |
| 89 |
"email": "[email protected]" |
| 90 |
} |
| 91 |
], |
| 92 |
"dist": { |
| 93 |
"shasum": "cddd8ec54d4c52ba631c79871275cfad85744ad8", |
| 94 |
"tarball": "https://registry.npmjs.org/static-extend/-/static-extend-0.1.0.tgz" |
| 95 |
}, |
| 96 |
"_npmOperationalInternal": { |
| 97 |
"host": "packages-13-west.internal.npmjs.com", |
| 98 |
"tmp": "tmp/static-extend-0.1.0.tgz_1457684127303_0.9251366925891489" |
| 99 |
}, |
| 100 |
"directories": {} |
| 101 |
}, |
| 102 |
"0.1.1": { |
| 103 |
"name": "static-extend", |
| 104 |
"description": "Adds a static `extend` method to a class, to simplify inheritance. Extends the static properties, prototype properties, and descriptors from a `Parent` constructor onto `Child` constructors.", |
| 105 |
"version": "0.1.1", |
| 106 |
"homepage": "https://github.com/jonschlinkert/static-extend", |
| 107 |
"author": { |
| 108 |
"name": "Jon Schlinkert", |
| 109 |
"url": "https://github.com/jonschlinkert" |
| 110 |
}, |
| 111 |
"repository": { |
| 112 |
"type": "git", |
| 113 |
"url": "git+https://github.com/jonschlinkert/static-extend.git" |
| 114 |
}, |
| 115 |
"bugs": { |
| 116 |
"url": "https://github.com/jonschlinkert/static-extend/issues" |
| 117 |
}, |
| 118 |
"license": "MIT", |
| 119 |
"files": [ |
| 120 |
"index.js" |
| 121 |
], |
| 122 |
"main": "index.js", |
| 123 |
"engines": { |
| 124 |
"node": ">=0.10.0" |
| 125 |
}, |
| 126 |
"scripts": { |
| 127 |
"test": "mocha" |
| 128 |
}, |
| 129 |
"dependencies": { |
| 130 |
"define-property": "^0.2.5" |
| 131 |
}, |
| 132 |
"devDependencies": { |
| 133 |
"gulp-format-md": "^0.1.7", |
| 134 |
"mocha": "^2.4.5" |
| 135 |
}, |
| 136 |
"keywords": [ |
| 137 |
"class", |
| 138 |
"ctor", |
| 139 |
"descriptor", |
| 140 |
"extend", |
| 141 |
"extends", |
| 142 |
"inherit", |
| 143 |
"inheritance", |
| 144 |
"merge", |
| 145 |
"method", |
| 146 |
"prop", |
| 147 |
"properties", |
| 148 |
"property", |
| 149 |
"prototype" |
| 150 |
], |
| 151 |
"verb": { |
| 152 |
"run": true, |
| 153 |
"toc": false, |
| 154 |
"layout": "default", |
| 155 |
"tasks": [ |
| 156 |
"readme" |
| 157 |
], |
| 158 |
"plugins": [ |
| 159 |
"gulp-format-md" |
| 160 |
], |
| 161 |
"reflinks": [ |
| 162 |
"verb" |
| 163 |
], |
| 164 |
"lint": { |
| 165 |
"reflinks": true |
| 166 |
} |
| 167 |
}, |
| 168 |
"gitHead": "615e9a3c88bdc93cf7d71793d76a77cf54eb996a", |
| 169 |
"_id": "[email protected]", |
| 170 |
"_shasum": "7f2fb0d42a1020c2f5919dabc493b42912380060", |
| 171 |
"_from": ".", |
| 172 |
"_npmVersion": "3.6.0", |
| 173 |
"_nodeVersion": "5.5.0", |
| 174 |
"_npmUser": { |
| 175 |
"name": "jonschlinkert", |
| 176 |
"email": "[email protected]" |
| 177 |
}, |
| 178 |
"maintainers": [ |
| 179 |
{ |
| 180 |
"name": "jonschlinkert", |
| 181 |
"email": "[email protected]" |
| 182 |
} |
| 183 |
], |
| 184 |
"dist": { |
| 185 |
"shasum": "7f2fb0d42a1020c2f5919dabc493b42912380060", |
| 186 |
"tarball": "https://registry.npmjs.org/static-extend/-/static-extend-0.1.1.tgz" |
| 187 |
}, |
| 188 |
"_npmOperationalInternal": { |
| 189 |
"host": "packages-13-west.internal.npmjs.com", |
| 190 |
"tmp": "tmp/static-extend-0.1.1.tgz_1457684793966_0.13632435514591634" |
| 191 |
}, |
| 192 |
"directories": {} |
| 193 |
}, |
| 194 |
"0.1.2": { |
| 195 |
"name": "static-extend", |
| 196 |
"description": "Adds a static `extend` method to a class, to simplify inheritance. Extends the static properties, prototype properties, and descriptors from a `Parent` constructor onto `Child` constructors.", |
| 197 |
"version": "0.1.2", |
| 198 |
"homepage": "https://github.com/jonschlinkert/static-extend", |
| 199 |
"author": { |
| 200 |
"name": "Jon Schlinkert", |
| 201 |
"url": "https://github.com/jonschlinkert" |
| 202 |
}, |
| 203 |
"repository": { |
| 204 |
"type": "git", |
| 205 |
"url": "git+https://github.com/jonschlinkert/static-extend.git" |
| 206 |
}, |
| 207 |
"bugs": { |
| 208 |
"url": "https://github.com/jonschlinkert/static-extend/issues" |
| 209 |
}, |
| 210 |
"license": "MIT", |
| 211 |
"files": [ |
| 212 |
"index.js" |
| 213 |
], |
| 214 |
"main": "index.js", |
| 215 |
"engines": { |
| 216 |
"node": ">=0.10.0" |
| 217 |
}, |
| 218 |
"scripts": { |
| 219 |
"test": "mocha" |
| 220 |
}, |
| 221 |
"dependencies": { |
| 222 |
"define-property": "^0.2.5", |
| 223 |
"object-copy": "^0.1.0" |
| 224 |
}, |
| 225 |
"devDependencies": { |
| 226 |
"gulp-format-md": "^0.1.9", |
| 227 |
"mocha": "^2.5.3" |
| 228 |
}, |
| 229 |
"keywords": [ |
| 230 |
"class", |
| 231 |
"ctor", |
| 232 |
"descriptor", |
| 233 |
"extend", |
| 234 |
"extends", |
| 235 |
"inherit", |
| 236 |
"inheritance", |
| 237 |
"merge", |
| 238 |
"method", |
| 239 |
"prop", |
| 240 |
"properties", |
| 241 |
"property", |
| 242 |
"prototype" |
| 243 |
], |
| 244 |
"verb": { |
| 245 |
"run": true, |
| 246 |
"toc": false, |
| 247 |
"layout": "default", |
| 248 |
"tasks": [ |
| 249 |
"readme" |
| 250 |
], |
| 251 |
"plugins": [ |
| 252 |
"gulp-format-md" |
| 253 |
], |
| 254 |
"reflinks": [ |
| 255 |
"verb", |
| 256 |
"verb-readme-generator" |
| 257 |
], |
| 258 |
"lint": { |
| 259 |
"reflinks": true |
| 260 |
} |
| 261 |
}, |
| 262 |
"gitHead": "ce41369391163eb9403848a1b4daf00be981c56b", |
| 263 |
"_id": "[email protected]", |
| 264 |
"_shasum": "60809c39cbff55337226fd5e0b520f341f1fb5c6", |
| 265 |
"_from": ".", |
| 266 |
"_npmVersion": "3.8.9", |
| 267 |
"_nodeVersion": "6.2.0", |
| 268 |
"_npmUser": { |
| 269 |
"name": "jonschlinkert", |
| 270 |
"email": "[email protected]" |
| 271 |
}, |
| 272 |
"maintainers": [ |
| 273 |
{ |
| 274 |
"name": "jonschlinkert", |
| 275 |
"email": "[email protected]" |
| 276 |
} |
| 277 |
], |
| 278 |
"dist": { |
| 279 |
"shasum": "60809c39cbff55337226fd5e0b520f341f1fb5c6", |
| 280 |
"tarball": "https://registry.npmjs.org/static-extend/-/static-extend-0.1.2.tgz" |
| 281 |
}, |
| 282 |
"_npmOperationalInternal": { |
| 283 |
"host": "packages-16-east.internal.npmjs.com", |
| 284 |
"tmp": "tmp/static-extend-0.1.2.tgz_1465497934772_0.6460855521727353" |
| 285 |
}, |
| 286 |
"directories": {} |
| 287 |
} |
| 288 |
}, |
| 289 |
"readme": "# static-extend [](https://www.npmjs.com/package/static-extend) [](https://npmjs.org/package/static-extend) [](https://travis-ci.org/jonschlinkert/static-extend)\n\nAdds a static `extend` method to a class, to simplify inheritance. Extends the static properties, prototype properties, and descriptors from a `Parent` constructor onto `Child` constructors.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install static-extend --save\n```\n\n## Usage\n\n```js\nvar extend = require('static-extend');\n```\n\n## API\n\n### [extend](index.js#L47)\n\nReturns a function for extending the static properties, prototype properties, and descriptors from the `Parent` constructor onto `Child` constructors.\n\n**Params**\n\n* `Parent` **{Function}**: Parent ctor\n* `extendFn` **{Function}**: Optional extend function for handling any necessary custom merging. Useful when updating methods that require a specific prototype.\n* `Child` **{Function}**: Child ctor\n* `proto` **{Object}**: Optionally pass additional prototype properties to inherit.\n* `returns` **{Object}**\n\n**Example**\n\n```js\nvar extend = require('static-extend');\nParent.extend = extend(Parent);\n\n// optionally pass a custom merge function as the second arg\nParent.extend = extend(Parent, function(Child) {\n Child.prototype.mixin = function(key, val) {\n Child.prototype[key] = val;\n };\n});\n\n// extend \"child\" constructors\nParent.extend(Child);\n\n// optionally define prototype methods as the second arg\nParent.extend(Child, {\n foo: function() {},\n bar: function() {}\n});\n```\n\n## Contributing\n\nThis document was generated by [verb-readme-generator](https://github.com/verbose/verb-readme-generator) (a [verb](https://github.com/verbose/verb) generator), please don't edit directly. Any changes to the readme must be made in [.verb.md](.verb.md). See [Building Docs](#building-docs).\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new). Or visit the [verb-readme-generator](https://github.com/verbose/verb-readme-generator) project to submit bug reports or pull requests for the readme layout template.\n\n## Building docs\n\nGenerate readme and API documentation with [verb](https://github.com/verbose/verb):\n\n```sh\n$ npm install -g verb verb-readme-generator && verb\n```\n\n## Running tests\n\nInstall dev dependencies:\n\n```sh\n$ npm install -d && npm test\n```\n\n## Author\n\n**Jon Schlinkert**\n\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](http://twitter.com/jonschlinkert)\n\n## License\n\nCopyright © 2016, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT license](https://github.com/jonschlinkert/static-extend/blob/master/LICENSE).\n\n***\n\n_This file was generated by [verb](https://github.com/verbose/verb), v0.9.0, on June 09, 2016._", |
| 290 |
"maintainers": [ |
| 291 |
{ |
| 292 |
"name": "jonschlinkert", |
| 293 |
"email": "[email protected]" |
| 294 |
} |
| 295 |
], |
| 296 |
"time": { |
| 297 |
"modified": "2016-06-09T18:45:37.095Z", |
| 298 |
"created": "2016-03-11T08:15:29.541Z", |
| 299 |
"0.1.0": "2016-03-11T08:15:29.541Z", |
| 300 |
"0.1.1": "2016-03-11T08:26:36.140Z", |
| 301 |
"0.1.2": "2016-06-09T18:45:37.095Z" |
| 302 |
}, |
| 303 |
"homepage": "https://github.com/jonschlinkert/static-extend", |
| 304 |
"keywords": [ |
| 305 |
"class", |
| 306 |
"ctor", |
| 307 |
"descriptor", |
| 308 |
"extend", |
| 309 |
"extends", |
| 310 |
"inherit", |
| 311 |
"inheritance", |
| 312 |
"merge", |
| 313 |
"method", |
| 314 |
"prop", |
| 315 |
"properties", |
| 316 |
"property", |
| 317 |
"prototype" |
| 318 |
], |
| 319 |
"repository": { |
| 320 |
"type": "git", |
| 321 |
"url": "git+https://github.com/jonschlinkert/static-extend.git" |
| 322 |
}, |
| 323 |
"author": { |
| 324 |
"name": "Jon Schlinkert", |
| 325 |
"url": "https://github.com/jonschlinkert" |
| 326 |
}, |
| 327 |
"bugs": { |
| 328 |
"url": "https://github.com/jonschlinkert/static-extend/issues" |
| 329 |
}, |
| 330 |
"license": "MIT", |
| 331 |
"readmeFilename": "README.md", |
| 332 |
"_attachments": {} |
| 333 |
} |