Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Jpex is a Class wrapper and Inversion of Control framework.
Jpex makes it easy to create an Object-Oriented-style application in Node. It wraps up a lot of the prototypical quirks of Javascript so you can focus on creating purposeful classes. This is an intentional move away from static functions and modules in favour of providing all complex objects in the form of class instances.
The second purpose of Jpex is to make dependency injection extremely easy. You shouldn't ever have to require
a module within your application (other than Jpex itself), but you also shouldn't have to worry about manually injecting dependencies into every class.
Nobody wants to call a function with 20 parameters in a specific order.
It's not readable, maintainable, or fun. Proper dependency injection should be automagical and the caller shouldn't care what the callee depends on.
Easy: require, extend, and instantiate!
var jpex = require('jpex');
var MyClass = jpex.extend(function($log){
this.thing = 'hello';
$log('My Class instantiated');
});
var instance = new MyClass();
There is much more that can be done with Jpex. Checkout the full documentation at https://github.com/jackmellis/jpex/blob/master/docs/index.md
FAQs
Javascript Prototype Extension
The npm package jpex receives a total of 690 weekly downloads. As such, jpex popularity was classified as not popular.
We found that jpex demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.