{"bugs":{"url":"https://github.com/vesln/super/issues"},"dist":{"shasum":"a6695c1dce00ff58432a63e8b9ce268932b42c61","tarball":"https://registry.npmjs.org/super/-/super-0.2.3.tgz","integrity":"sha512-fjYEpGyjeC7yeAqz9vb5pwuqgSvJ8adkMowLgfltfUnP9P8g17+l0GridSWkCuTaclxE5y4EcyZj8L2NI7t1Hg==","signatures":[{"sig":"MEQCIAr5w6708VLhlmz8f0IaZyv19srOdLMqJwvJ64c3kXE0AiBlqp2Ycw6nQt388yygjo53Kr4qIOsO6E0UIxmkK/nX4Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./lib/super","name":"super","_from":".","author":{"name":"Veselin Todorov","email":"hi@vesln.com"},"readme":"[![Build Status](https://secure.travis-ci.org/vesln/super.png)](http://travis-ci.org/vesln/super)\n\n# super\n\n## Installation\n\nSuper is available for both server-side and the browser.\n\n### Node.js\n\nPackage is available through [npm](http://npmjs.org):\n\n    npm install super\n\nAnd also through [component](http://component.io):\n\n    component install vesln/super\n\n\n## Getting Started\n\nIt can be used is a replacement for node's `util.inherits`. Especially useful when building\nmodules for both node and the browser.\n\n```javascript\nvar inherits = require('super');\n\n// Classes, actually it uses util.inherits.\n\nvar EventEmitter = require('events').EventEmitter;\nfunction Foo() {};\n\ninherits(Foo, EventEmitter);\nvar foo = new Foo;\n\nconsole.log(foo instanceof EventEmitter); // true\nconsole.log(Foo.super_ == EventEmitter); // true\n```\n\nIt can also be used for simple merging or cloning of objects.\n\n```javascript\n// merge\nvar foo = { bar: 'baz' };\nvar bar = { foo: 3 };\nvar baz = inherits(bar, foo);\n\nconsole.log(baz);\n\n// clone\nvar bar = { foo: 3 };\nvar barClone = clone(bar);\n```\n\nAnd finally, it also provides a helper that will allow for object to easily be\nextended, similiar to the style in Backbone.js.\n\n```javascript\nfunction Foo () {\n  this._konstructed = true;\n  if (this.initialize) this.initialize();\n}\n\nFoo.extend = inherits.extend;\n\nvar Bar = Foo.extend({\n  initialize: function () {\n    this._isBar = true;\n  }\n});\n\nvar foo = new Foo()\n  , bar = new Bar();\n\nconsole.log(foo._konstructed); // true\nconsole.log(bar._konstructed); // true\nconsole.log(foo._isBar); // undefined\nconsole.log(bar._isBar); // true\n```\n\n## Tests\n\nAll:\n\n```\n$ make test\n```\n\nNode:\n\n```\n$ make test-node\n```\n\nBrowser:\n\n```\n$ make test-browser\n```\n\nTest coverage:\n\n```\n$ make coverage\n```\n\n## License\n\nMIT License\n\nCopyright (C) 2012-2013 Veselin Todorov\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies\nof the Software, and to permit persons to whom the Software is furnished to do\nso, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","engines":{"node":">= 0.6.0"},"scripts":{"test":"make test"},"_npmUser":{"name":"vesln","email":"hi@vesln.com"},"homepage":"http://github.com/vesln/super","keywords":["extend","inherits","super","clone"],"repository":{"url":"http://github.com/vesln/super.git","type":"git"},"_npmVersion":"1.3.8","description":"Extend everything.","maintainers":[{"name":"vesln","email":"hi@vesln.com"}],"readmeFilename":"README.md","devDependencies":{"chai":"*","karma":"~0.10.8","mocha":"*","istanbul":"~0.1.46","component":"~0.18.0","requirejs":"~2.1.9","karma-mocha":"~0.1.1","karma-requirejs":"~0.2.0","karma-chrome-launcher":"~0.1.1","karma-script-launcher":"~0.1.0","karma-firefox-launcher":"~0.1.2","karma-phantomjs-launcher":"~0.1.1","karma-html2js-preprocessor":"~0.1.0"},"_id":"super@0.2.3","version":"0.2.3"}