/
home
/
techb158
/
balavpn.abdallabala.com
/
node_modules
/
has-flag
/
/home/techb158/balavpn.abdallabala.com/node_modules/has-flag
mkdir
upload
Name
Size
Mode
Actions
index.d.ts
684
0666
edit
dl
rm
index.js
330
0666
edit
dl
rm
license
1109
0666
edit
dl
rm
package.json
696
0666
edit
dl
rm
readme.md
1600
0666
edit
dl
rm
Edit:
/home/techb158/balavpn.abdallabala.com/node_modules/has-flag/index.js
(330B)
'use strict'; module.exports = (flag, argv = process.argv) => { const prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--'); const position = argv.indexOf(prefix + flag); const terminatorPosition = argv.indexOf('--'); return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition); };
Save
'use strict'; module.exports = (flag, argv = process.argv) => { const prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--'); const position = argv.indexOf(prefix + flag); const terminatorPosition = argv.indexOf('--'); return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition); };