@danisl99/deep-proxy
v1.0.0
Published
Deep recursive proxy object
Downloads
1
Readme
deep-proxy
Deep recursive proxy object
Install:
$ npm install @danisl99/deep-proxy
Example:
const DeepProxy = require("@danisl99/deep-proxy");
const handler = {
set: async function (obj, prop, value) {
console.log(`Setting ${prop} to ${value}`);
obj[prop] = value;
},
deleteProperty: function (obj, prop) {
console.log(`Deleted ${prop}`);
delete obj[prop];
},
};
const proxyObject = new DeepProxy(data, handler);