Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
extends-classes
Advanced tools
Ever wanted to extend from multiple classes in Javascript? well now you can.
const classes = require('extends-classes');
class Test extends classes (A, B, C) {
}
Method missing:
const classes = require('extends-classes');
class Test extends classes (A, B, C) {
constructor() {
super();
}
__call(method, args) {
console.log(`'${method}()' is missing!`);
}
}
const test = new Test();
test.somethingThatIsNonExistent();
// 'somethingThatIsNonExistent()' is missing!
MethodMissing is included in the stack, see method-missing.
Check out the test folder for more!
$ npm install extends-classes
If you don't like the naming, just change it when requiring.
const many = require('extends-classes');
class Test extends many (A, B, C) {
// class stuff.
}
From the package
$ npm test
FAQs
Extend from multiple classes!
The npm package extends-classes receives a total of 14,791 weekly downloads. As such, extends-classes popularity was classified as popular.
We found that extends-classes 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.