Last active
May 25, 2024 10: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/f524c135cc1d5fda30c6d7f4baf8894f7241e2e6
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 NON-AI License Version 2.0 (https://raw.githubusercontent.com/non-ai-licenses/non-ai-licenses/main/NON-AI-APACHE2) | |
// 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