augment

The world's smallest and fastest classical JavaScript inheritance pattern.

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
Last updated 6 years ago by aaditmshah .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install augment 
SYNC missed versions from official npm registry.

augment

The world's smallest and fastest classical JavaScript inheritance pattern, augment, is a seven line function which allows you to write CoffeeScript style classes with a flair of simplicity; and it still beats the bejesus out of other JavaScript inheritance libraries.

Inspired by giants like Jeremy Ashkenas and John Resig, 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.

Installation

  1. You can install augment on node.js using the npm command npm install augment.
  2. You can install augment on RingoJS using the rp command rp install augment.
  3. You can install augment for web apps using the component command component install javascript/augment.
  4. You can install augment for web apps using the bower command bower install augment.

Usage

  1. You can use augment as a CommonJS module:

    var augment = require("augment"); // module.exports must be supported
    
  2. You can use augment with the AMD API:

    define(["augment"], function (augment) {
        // ....
    });
    
  3. You can include the latest copy in your web pages, fiddles and benchmarks:

    <script src="https://rawgithub.com/javascript/augment/master/augment.js"></script>
    
  4. You can browse the source code and stick it into your program.

Manual Pages

  1. Getting Started
  2. Classical Inheritance
  3. Prototypal Inheritance

License

The augment library is released under the MIT license. So feel free to modify and distribute it as you wish.

Current Tags

  • 4.3.1                                ...           latest (6 years ago)

19 Versions

  • 4.3.1 [deprecated]           ...           6 years ago
  • 4.3.0 [deprecated]           ...           11 years ago
  • 4.2.0 [deprecated]           ...           11 years ago
  • 4.0.3 [deprecated]           ...           11 years ago
  • 4.0.2 [deprecated]           ...           11 years ago
  • 4.0.1 [deprecated]           ...           11 years ago
  • 3.3.5 [deprecated]           ...           11 years ago
  • 3.3.4 [deprecated]           ...           11 years ago
  • 3.3.3 [deprecated]           ...           11 years ago
  • 3.3.2 [deprecated]           ...           11 years ago
  • 3.3.1 [deprecated]           ...           11 years ago
  • 3.3.0 [deprecated]           ...           11 years ago
  • 3.2.1 [deprecated]           ...           12 years ago
  • 3.2.0 [deprecated]           ...           12 years ago
  • 3.1.0 [deprecated]           ...           12 years ago
  • 3.0.0 [deprecated]           ...           12 years ago
  • 2.0.0 [deprecated]           ...           12 years ago
  • 1.1.0 [deprecated]           ...           12 years ago
  • 1.0.0 [deprecated]           ...           12 years ago
Maintainers (1)
Downloads
Total 19
Today 0
This Week 0
This Month 19
Last Day 0
Last Week 19
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (2)

© 2010 - cnpmjs.org x YWFE | Home | YWFE