formalist-data-object-renderer

1.1.1 • Public • Published

Formalist Data Object Renderer

Convert a Formalist AST into a plain old JavaScript object of its values. It will discard any presentational data associated with the form definition.

Usage

import createDataObjectRenderer from 'formalist-data-object-renderer'
const dataObjectRenderer = createDataObjectRenderer()

const data = [...] // Formalist compatible AST

const dataObject = dataObjectRenderer(data)
// -> { ... data as object }

Tests

$ npm run test

Readme

Keywords

none

Package Sidebar

Install

npm i formalist-data-object-renderer

Weekly Downloads

332

Version

1.1.1

License

MIT

Unpacked Size

30.1 kB

Total Files

13

Last publish

Collaborators

  • andrewcroome
  • narindajane
  • makenosound