
Security News
n8n Tops 2025 JavaScript Rising Stars as Workflow Platforms Gain Momentum
n8n led JavaScript Rising Stars 2025 by a wide margin, with workflow platforms seeing the largest growth across categories.
simpler-extend
Advanced tools
Simple 'extend' helper for inheritance and subclassing. Adapted from Backbone.js's Model.extend and CoffeeScript. This works like simple-extend, except this does not have any dependencies.
Assign it to your base class's .extend:
function Shape() { ... }
Shape.extend = require('simpler-extend');
Then use it to subclass:
var Circle = Shape.extend({
getArea: function () {
return this.width * this.height;
}
});
You can also add a constructor as constructor:
var Circle = Shape.extend({
constructor: function () { ... }
});
Calling methods from the base class:
var Circle = Shape.extend({
getArea: function () {
var super = Shape.prototype.getArea.apply(this, arguments);
return super * Math.PI;
}
});
See Backbone.js's Model.extend documentation for more details.
simpler-extend © 2015+, Rico Sta. Cruz. Released under the MIT License.
Authored and maintained by Rico Sta. Cruz with help from contributors (list).
ricostacruz.com · GitHub @rstacruz · Twitter @rstacruz
FAQs
Simple 'extend' helper for inheritance and subclassing
We found that simpler-extend demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
n8n led JavaScript Rising Stars 2025 by a wide margin, with workflow platforms seeing the largest growth across categories.

Security News
The U.S. government is rolling back software supply chain mandates, shifting from mandatory SBOMs and attestations to a risk-based approach.

Security News
crates.io adds a Security tab backed by RustSec advisories and narrows trusted publishing paths to reduce common CI publishing risks.