Skip to content

Commit

Permalink
feat: Add -v argument
Browse files Browse the repository at this point in the history
  • Loading branch information
Septh committed May 27, 2024
1 parent b862866 commit ee73a11
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ if (

await import(entryPoint);
}
else if (process.argv.includes('-v')) {
const { name, version } = module.createRequire(self)('../package.json')
console.log(`Node.js ${process.version}, ${name.split('/').pop()} v${version}`)
}
}
}
else {
Expand Down

0 comments on commit ee73a11

Please sign in to comment.