Files
ruflo/hello-bench/hello.mjs
T

11 lines
233 B
JavaScript

// Hello World function
export function helloWorld() {
console.log("Hello, World!");
}
// Run if called directly
import { fileURLToPath } from 'url';
if (process.argv[1] === fileURLToPath(import.meta.url)) {
helloWorld();
}