Throw when a user attempts to access specified properties in an object
$ npm install --save poison-get
var poison = require('poison-get')
var obj = poison({}, 'foo')
obj.foo
//=> throws ErrorRequired
Type: object
An object to modify with poison getters.
Required
Type: string / array[string]
The key (or keys) where poison getters will be assigned.
Type: string
An error message to use when throwing
MIT © Ben Drucker