Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
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
1.4.0
Class()
is now the same as calling new Class()
so calls like Class.call(obj)===obj
will no longer work.FAQs
Javascript Prototype Extension
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
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.