
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
Easy Proxy for fluent APIs.
const ezp = require('ezp');
const P = ezp({
get: function(props) {
// Called by:
// P.foo.bar.baz.$
// props:
// ['foo', 'bar', 'baz']
},
set: function(props, value) {
// Called by:
// P.foo.bar.baz = 1337
// props:
// ['foo', 'bar', 'baz']
// value:
// 1337
},
delete: function(props) {
// Called by:
// delete P.foo.bar.baz;
// props:
// ['foo', 'bar', 'baz']
},
has: function(props) {
// Called by:
// 'qux' in P.foo.bar.baz
// props:
// ['foo', 'bar', 'baz']
// value:
// 'qux'
},
apply: function(props, args) {
// Called by:
// P.foo.bar.baz(1337, 'qux')
// props:
// ['foo', 'bar', 'baz']
// args:
// [1337, 'qux']
},
}, '$');
ezp receives a handler object and an optional escape property, and returns a fluent proxy.
The handler object supports the following fluent traps: get, set, delete, in and apply, which are triggered as illustrated in the example above.
Note that to use the get trap, an escape property must be provided. This value will then be magical, and be used to trigger the get trap instead of navigating one level deeper within the proxy itself.
NOTE: The proxy is created as a virtual object, and interacting with the underlying target without setting the appropriate traps may result in unspecified behaviour. Use only the proxy in ways which are handled by the traps provided.
with npm do:
npm install ezp
MIT
FAQs
Easy Proxy for fluent APIs
We found that ezp 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.