{"id":13394874,"url":"https://github.com/aaditmshah/augment","last_synced_at":"2025-10-22T21:31:28.075Z","repository":{"id":6000781,"uuid":"7223698","full_name":"aaditmshah/augment","owner":"aaditmshah","description":"The world's smallest and fastest classical JavaScript inheritance pattern.","archived":true,"fork":false,"pushed_at":"2019-03-01T07:12:45.000Z","size":37,"stargazers_count":865,"open_issues_count":0,"forks_count":38,"subscribers_count":25,"default_branch":"master","last_synced_at":"2024-05-28T00:42:17.661Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aaditmshah.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-12-18T13:26:38.000Z","updated_at":"2024-05-17T16:40:48.000Z","dependencies_parsed_at":"2022-08-05T22:30:24.171Z","dependency_job_id":null,"html_url":"https://github.com/aaditmshah/augment","commit_stats":null,"previous_names":["javascript/augment"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaditmshah%2Faugment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaditmshah%2Faugment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaditmshah%2Faugment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaditmshah%2Faugment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aaditmshah","download_url":"https://codeload.github.com/aaditmshah/augment/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243478216,"owners_count":20297212,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-30T17:01:34.699Z","updated_at":"2025-10-22T21:31:27.739Z","avatar_url":"https://github.com/aaditmshah.png","language":"JavaScript","readme":"# augment #\n\nThe world's smallest and fastest classical JavaScript inheritance pattern, `augment`, is a [seven line function](https://github.com/aaditmshah/augment/blob/master/augment.js#L12-L18 \"augment.js\") which allows you to write [CoffeeScript style classes](http://coffeescript.org/#classes \"CoffeeScript\") with a flair of [simplicity](http://ejohn.org/blog/simple-javascript-inheritance/ \"John Resig -   Simple JavaScript Inheritance\"); and it still [beats the bejesus](http://jsperf.com/oop-benchmark/158 \"JavaScript Object Oriented Libraries Benchmark · jsPerf\") out of other JavaScript inheritance libraries.\n\nInspired by giants like [Jeremy Ashkenas](http://ashkenas.com/ \"Jeremy/Ashkenas — Portfolio\") and [John Resig](http://ejohn.org/ \"John Resig - JavaScript Programmer\"), `augment` is an augmentation of ideas. Classes created using `augment` have a CoffeeScript-like class structure, and a syntax like John Resig's classes; but they are more readable, intuitive and orders of magnitude faster. In addition they work on virtually every JavaScript platform.\n\n## Installation ##\n\n1. You can install `augment` on [node.js](http://nodejs.org/ \"node.js\") using the [npm](https://npmjs.org/ \"npm\") command `npm install augment`.\n2. You can install `augment` on [RingoJS](http://ringojs.org/ \"Home - RingoJS\") using the [rp](https://github.com/grob/rp \"grob/rp\") command `rp install augment`.\n3. You can install `augment` for web apps using the [component](https://github.com/component/component \"component/component\") command `component install javascript/augment`.\n4. You can install `augment` for web apps using the [bower](http://bower.io/ \"Bower - A package manager for the web\") command `bower install augment`.\n\n## Usage ##\n\n1. You can use `augment` as a [CommonJS module](http://wiki.commonjs.org/wiki/Modules \"Modules - CommonJS Spec Wiki\"):\n\n    ```javascript\n    var augment = require(\"augment\"); // module.exports must be supported\n    ```\n\n2. You can use `augment` with the [AMD API](https://github.com/amdjs/amdjs-api \"Asynchronous Module Definition (AMD) API\"):\n\n    ```javascript\n    define([\"augment\"], function (augment) {\n        // ....\n    });\n    ```\n\n3. You can include the latest copy in your web pages, [fiddles](http://jsfiddle.net/ \"Create a new Fiddle - jsFiddle\") and [benchmarks](http://jsperf.com/ \"jsPerf: JavaScript performance playground\"):\n\n    ```html\n    \u003cscript src=\"https://rawgithub.com/javascript/augment/master/augment.js\"\u003e\u003c/script\u003e\n    ```\n\n4. You can browse the [source code](https://github.com/aaditmshah/augment/blob/master/augment.js \"javascript/augment\") and stick it into your program.\n\n## Manual Pages ##\n\n1. [Getting Started](https://github.com/aaditmshah/augment/wiki/Getting-Started \"Getting Started · javascript/augment Wiki\")\n2. [Classical Inheritance](https://github.com/aaditmshah/augment/wiki/Classical-Inheritance \"Classical Inheritance · javascript/augment Wiki\")\n3. [Prototypal Inheritance](https://github.com/aaditmshah/augment/wiki/Prototypal-Inheritance \"Prototypal Inheritance · javascript/augment Wiki\")\n\n## License ##\n\nThe `augment` library is released under the MIT license. So feel free to modify and distribute it as you wish.\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faaditmshah%2Faugment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faaditmshah%2Faugment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faaditmshah%2Faugment/lists"}