lambda-json

1.0.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i lambda-json

Weekly Downloads

0

Version

1.0.1

License

MIT

Last publish

Collaborators

  • joshrtay