We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3d0582 commit 883e99fCopy full SHA for 883e99f
scripts/shebang.mjs
@@ -1,6 +1,6 @@
1
import { readFile, writeFile } from 'fs/promises'
2
3
-const filename = process.argv[2]
+const [,,filename] = process.argv
4
const shebang = '#!/usr/bin/env node\n'
5
6
const contents = await readFile( filename, 'utf-8' )
0 commit comments