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 36e9a2b commit 305f33bCopy full SHA for 305f33b
scripts/shebang.mjs
@@ -1,7 +1,7 @@
1
import * as fs from 'node:fs/promises'
2
3
-const [,,filepath] = process.argv
+const [,,filePath] = process.argv
4
const shebang = '#!/usr/bin/env node\n'
5
-const contents = await fs.readFile(filepath, 'utf-8')
+const contents = await fs.readFile(filePath, 'utf-8')
6
7
-await fs.writeFile(filepath, shebang + contents)
+await fs.writeFile(filePath, shebang + contents)
0 commit comments