mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-24 22:28:10 +09:00
11 lines
233 B
JavaScript
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();
|
|
}
|