Package detail

csextends

bevry125.9kMIT1.2.0

Use the Coffee-Script extends keyword outside of Coffee-Script. Useful for easily extending existing existing classes, e.g. require('csextends')(klass, extensions), and for providing your module consumers with an easy way to extend your classes, i.e. `B

backbone, class, coffeescript, javascript

readme

Coffee-Script Extends

Travis CI Build Status NPM version NPM downloads Dependency Status Dev Dependency Status
Patreon donate button Open Collective donate button Flattr donate button PayPal donate button Bitcoin donate button Wishlist browse button
Slack community badge

Use the Coffee-Script extends keyword outside of Coffee-Script. Useful for easily extending existing existing classes, e.g. require('csextends')(klass, extensions), and for providing your module consumers with an easy way to extend your classes, i.e. Backbone.Model.extend(extensions).

Usage

Check out the interactive code snippet for usage here.

Install

NPM

  • Install: npm install --save csextends
  • Module: require('csextends')

Browserify

  • Install: npm install --save csextends
  • Module: require('csextends')
  • CDN URL: //wzrd.in/bundle/csextends@1.2.0

Ender

  • Install: ender add csextends
  • Module: require('csextends')

Editions

This package is published with the following editions:

  • csextends/source/index.coffee is Source + CoffeeScript + Require
  • csextends aliases csextends/es5/index.js
  • csextends/es5/index.js is CoffeeScript Compiled + ES5 + Require

History

Discover the release history by heading on over to the HISTORY.md file.

Contribute

Discover how you can contribute by heading on over to the CONTRIBUTING.md file.

Backers

Maintainers

These amazing people are maintaining this project:

Sponsors

No sponsors yet! Will you be the first?

Patreon donate button Open Collective donate button Flattr donate button PayPal donate button Bitcoin donate button Wishlist browse button

Contributors

These amazing people have contributed code to this project:

Discover how you can contribute by heading on over to the CONTRIBUTING.md file.

License

Unless stated otherwise all works are:

and licensed under:

changelog

History

v1.2.0 2018 March 22

v1.1.1 2017 April 25

  • Fixed CoffeeScript dependency missing from v1.1.0

v1.1.0 2017 April 25

  • Updated base files

v1.0.3 2014 July 3

  • Usage example in readme is now external

v1.0.2 2014 July 3

  • Renamed from extendonclass to csextends
  • Added the ability to specify the parent class via an argument

v1.0.1 2014 May 7

  • Can now extend on class without any prototype to extend with
  • Updated dependencies

v1.0.0 2013 December 20

  • Initial working release