{
  "name": "better-js-class",
  "description": "A convenient way to emulated class and inheritance in Javascript.",
  "main": "./lib/class",
  "author": {
    "name": "Chiyan Chen"
  },
  "version": "0.1.3",
  "repository": {
    "type": "git",
    "url": "https://github.com/redblaze/class.git"
  },
  "bugs": {
    "url": "https://github.com/redblaze/class/issues"
  },
  "licenses": [
    {
      "type": "MIT",
      "url": "https://github.com/redblaze/class/raw/master/LICENSE"
    }
  ],
  "jam": {
    "main": "lib/class.js",
    "include": [
      "lib/class.js",
      "README.md",
      "LICENSE"
    ]
  },
  "readme": "# class\n\nA convenient way to emulated class and inheritance in Javascript.\n\nWhy is this \"better\"?  In the inheritance case, the super function can be called without explicitly referring to the parent class.  One can just write:\n\n```javascript\nthis.parent.methodName.call(this, args);\n```\n\n__Example__\n\n```javascript\nvar Class = require('better-js-class');\n\nvar A = Class({\n    _init: function() {\n        this._bar = 'bar';\n    },\n\n    foo: function() {\n        console.log('foo ' + this._bar);\n    }\n});\n\nvar B = Class(A, {\n    _init: function() {\n        this.parent._init.call(this);\n    },\n\n    kaz: function() {\n        console.log('kaz ' + this._bar);\n    }\n});\n\nvar a = new B();\na.foo();\na.kaz();\n```\n\n## Note\n\nThe constructor function's name is conventioned to be \"_init\".  \n\n",
  "readmeFilename": "README.md",
  "homepage": "https://github.com/redblaze/class",
  "_id": "better-js-class@0.1.3",
  "dist": {
    "shasum": "321c8438eb4d5eda96f94ae31d4de2c01e2720ef"
  },
  "_from": "better-js-class@*",
  "_resolved": "https://registry.npmjs.org/better-js-class/-/better-js-class-0.1.3.tgz"
}
