lambda-json
v1.0.1
Published
Convert JSON with embedded functions to static JSON.
Downloads
1
Readme
lambda-json
Convert JSON with embedded functions to static JSON.
Installation
$ npm install lambda-json
Usage
var lambdaJSON = require('lambda-json')
var obj = {
foo: {
bar: (props) => props.bar
}
}
lambdaJSON(obj, {bar: ''woot}) // => {foo: {bar: 'woot'}}
API
lambdaJSON(obj, props)
obj
- The lambda json object.props
- Properties to embedded functions or generators.
Returns: The computed plain JSON.
License
MIT