This repository contains some very simple examples showing how a Ceylon module can make use of JavaScript modules belonging to the node package manager.
If you don't already have Ceylon installed, you don't need
to explicitly install it, since the ceylonb
command is
self-installing.
Compile the examples by typing
ceylon compile-js
which automatically calls npm
to install the dependencies.
Run the examples using
ceylon run-js -x runXmlParser eg.npm
ceylon run-js -x runHtmlRequest eg.npm
ceylon run-js -x runCommander eg.npm --pineapple --cheese parmesan