obj.very.deeply.nested.property.isNow = 'possible'
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.gitignore
.travis.yml
LICENSE.md
README.md
deep-proxy.js
package.json

README.md

Deep Proxy

Build Status js-standard-style

Requires Proxy support. This is in newer browsers and Node 6+.

Live this dream:

let obj = {}

let proxy = deepProxy(obj)
proxy.very.deeply.nested.property = 'possible'

console.log(obj)
/*
{
  very: {
    deeply: {
      nested: {
        property: 'possible'
      }
    }
  }
}
*/

Use it in Node/Browserify/Webpack:

let deepProxy = require('deep-proxy')

let proxy = deepProxy({})

Or use it in the browser:

<script src="deep-proxy.js"></script>
<script>
var proxy = deepProxy({})
</script>