tiny-proxy

Tiny Object proxy for Client or Server

View the Project on GitHub avoidwork/tiny-proxy

API

proxy(obj[, read_only])

Returns a proxy for obj with getters & setters, or only getters if read_only is true

Example

var proxy = require('proxy'),
    data  = {'name': 'John', ...},
    data_proxy = proxy(data, true);

// Send the read-only proxy out
someFunction(data_proxy);

Status

build status