Skip to content

Instantly share code, notes, and snippets.

@dacr
Last active May 27, 2023 15:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dacr/6f16eadab7129e6fd0f993cc8bfdb7a1 to your computer and use it in GitHub Desktop.
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/6543a7341926dbd467d696e69127401a23e006c0
// 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.3.0"
//> 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