Skip to content

little-arhat/exported-ocaml-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Export ocaml lib as js module

This is example project to experiment with exporting ocaml lib as js package.

It starts with simple exports object, but the plan is to explore smth like CommonML.

It uses ppx_jsobject_conv to generate conversion between ocaml and javascript values.

Testing

Manual testing currently: build the project with make and then run node:

> var core = require('./resorces/js/core.js')
> core.tval
[1, 'test', 10]
> core.test_raise()
Error: test

About

example of ocaml lib exported as js module

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published