1.0.1 • Published 10 years ago
lambda-json v1.0.1
lambda-json
Convert JSON with embedded functions to static JSON.
Installation
$ npm install lambda-jsonUsage
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