1.0.1 • Published 8 years ago

lambda-json v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

lambda-json

Build status Git tag NPM version Code style

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