@protobufjs/extend
Provides minimal drop-in inheritance for classes.
Last updated 9 years ago by dcode .
BSD-3-Clause · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @protobufjs/extend 
SYNC missed versions from official npm registry.

@protobufjs/extend

npm

Provides minimal drop-in inheritance for classes.

Usage

function ParentClass() {
}
ParentClass.extend = require("@protobufjs/extend");
function ChildClass() {
}
var ChildPrototype = ParentClass.extend(ChildClass); // also inherits .extend itself
function GrandchildClass() {
}
var GrandchildPrototype = ChildClass.extend(GrandchildClass); // and so it goes forever

License: BSD 3-Clause License

Current Tags

  • 1.0.2                                ...           latest (9 years ago)

3 Versions

  • 1.0.2                                ...           9 years ago
  • 1.0.1                                ...           9 years ago
  • 1.0.0                                ...           9 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |