Last active
February 3, 2026 20:18
-
-
Save dacr/6f16eadab7129e6fd0f993cc8bfdb7a1 to your computer and use it in GitHub Desktop.
scala cli - hello world from nodejs with dependencies / published by https://github.com/dacr/code-examples-manager #38fe7016-5350-4a96-946f-9b74feecfa12/5b4d2a0f2ff7e0edce2d6384d79150c2d80a557f
This file contains hidden or 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
| // summary : scala cli - hello world from nodejs with dependencies | |
| // keywords : scala, scalacli, helloworld, nodejs, @testable | |
| // publish : gist | |
| // authors : David Crosson | |
| // license : Apache License Version 2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt) | |
| // id : 38fe7016-5350-4a96-946f-9b74feecfa12 | |
| // created-on : 2021-11-13T10:30:00+01:00 | |
| // managed-by : https://github.com/dacr/code-examples-manager | |
| // run-with : scala-cli --js $file | |
| // --------------------- | |
| //> using jsVersion "1.13.1" | |
| //> using scala "3.4.2" | |
| //> using dep "io.github.cquiroz::scala-java-time:2.5.0" | |
| //> using dep "io.github.cquiroz::scala-java-time-tzdb:2.5.0" | |
| // --------------------- | |
| // TOTO - some issues with dependencies using scala-cli | |
| import java.time.* | |
| println(s"Hello world from node.js using scala ${Instant.now}") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment