@heiwa4126/hello5
Version:
TypeScript hello world library with dual ES modules/CommonJS support. Features GitHub Actions trusted publishing to npmjs with Sigstore attestation.
6 lines (5 loc) • 458 B
JavaScript
import{hello as e,version as t}from"./index.js";function n(){console.log(`Usage: heiwa4126-hello5 [-h|--help] [-v|--version]
Options:
-h, --help Show this help message
-v, --version Show version`)}function r(){console.log(t)}function i(){let t=process.argv.slice(2);(t.includes(`-h`)||t.includes(`--help`))&&(n(),process.exit(0)),(t.includes(`-v`)||t.includes(`--version`))&&(r(),process.exit(0)),console.log(e())}i();export{};