A Proxy handler maker that drastically simplifies making and using Harmony Proxies by combining traps and normalizing their arguments.
Base on direct-proxies but simplified and without verification. EasyProxy allows for simplified creation of Proxies.
npm install easy-proxy
Names modified for brevity, argument order normalized,
target provided. A handler can be reused much more easily since the target is always provided.
var proxied =;
Any traps not provided in the handler will default to forwarding to the target.
The first parameter,
fwd is a function that when called will forward the action to the target and return the result. The forward function also has two properties to modify what it does