Giter Club home page Giter Club logo

augment's Introduction

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.

Man Pages

  1. Getting Started
  2. Classical Inheritance

License

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

augment's People

Contributors

dashed avatar patrickjs avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.