diff --git a/README.md b/README.md index e9ace13..61c85a1 100644 --- a/README.md +++ b/README.md @@ -34,8 +34,7 @@ Dual license notice: The default license for this project is GPL 3.0. However, i - [Includes binaries](https://github.com/gnh1201/welsonjs/blob/master/bin/README.MD) - [module.exports](https://nodejs.org/en/knowledge/getting-started/what-is-require/), CommonJS, UMD compatibility - [NPM](https://www.npmjs.com/) compatibility -- [CoffeeScript 2](https://coffeescript.org/)/[LiveScript](https://livescript.net/) compatibility -- [TypeScript](https://www.typescriptlang.org/) compatibility +- Pre-included transpiler - e.g. [TypeScript](https://www.typescriptlang.org/), [CoffeeScript 2](https://coffeescript.org/), [LiveScript](https://livescript.net/), [Rescript](https://rescript-lang.org/) - Ready to use on Windows machine immediately. No require additional softwares installation. ## Included libraries diff --git a/helloworld.re b/helloworld.re index b68addb..e9a37d8 100644 --- a/helloworld.re +++ b/helloworld.re @@ -1,5 +1,7 @@ let greet = (name) => "Hello " ++ name let add = (x, y, z) => x + y + z -Js.log(greet("world!")) // "Hello world!" -Js.log(add(1, 2, 3)) // 6 \ No newline at end of file +let main = (args) => { + Js.log(greet("world!")) // "Hello world!" + Js.log(add(1, 2, 3)) // 6 +}