package ppx_jsobject_conv

  1. Overview
  2. Docs
Ppx plugin for Typeconv to derive conversion from ocaml types to js objects to use with js_of_ocaml.

Install

Dune Dependency

Authors

Maintainers

Sources

v0.6.0.tar.gz
sha256=13539d913ab770e07b426f53cc13974c905a3fdfaf66a97cbb8a4aee3719f20a
md5=0b281ee22fd3fe2e2e01339cc0473298

Description

For types annotated with [@@deriving jsobject], plugin will generate pair of functions: of_jsobject/jsobject_of to convert from/to JavaScript objects. This allows one to use clean OCaml types to describe their logic, while having ability to easy go down to js types. Easy conversion from js objects to OCaml types means also, one can use fast native JSON.parse to convert JSON to OCaml types.

Plugin supports number of customizations.

Tags

syntax jsoo javascript

Published: 14 Mar 2019

Dependencies (4)

  1. dune >= "1.0"
  2. ocaml-migrate-parsetree >= "0.4" & < "2.0.0"
  3. ppxlib >= "0.5.0" & < "0.9.0"
  4. js_of_ocaml >= "2.8"

Dev Dependencies (1)

  1. webtest with-test

Used by

None

Conflicts

None

OCaml

Innovation. Community. Security.