Last active
November 10, 2015 16:53
-
-
Save fxfactorial/71e9a695d9209c6e59be to your computer and use it in GitHub Desktop.
Use node and node packages, like npm's color.js, from OCaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let () = | |
let styled = | |
Colors_js.colorize ~msg:"Hello World" | |
~styles:Colors_js.([Blue; Underline; White_bg]) | |
[] | |
in | |
let with_actions = | |
Colors_js.colorize ~msg:"Foo Bar Baz" ~styles:[] [Colors_js.America] | |
in | |
print_endline styled; | |
print_endline with_actions |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Compile and use with