Skip to content

Instantly share code, notes, and snippets.

@dacr
Last active February 3, 2026 20:18
Show Gist options
  • Select an option

  • Save dacr/6f16eadab7129e6fd0f993cc8bfdb7a1 to your computer and use it in GitHub Desktop.

Select an option

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
// 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