Skip to content

Instantly share code, notes, and snippets.

@chochos
Created June 27, 2016 14:55
Show Gist options
  • Save chochos/5388258b6396a4d92189c9b003e8cde5 to your computer and use it in GitHub Desktop.
Save chochos/5388258b6396a4d92189c9b003e8cde5 to your computer and use it in GitHub Desktop.
Using npm from Ceylon
module test "0.1" {
import "npm:uuid" "2.0.2";
}
import uuid { v1 }
shared void run() {
dynamic {
print(v1());
}
}
@chochos
Copy link
Author

chochos commented Jun 27, 2016

Don't forget to compile and run with the --rep=npm: option

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment