'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); };
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
index.d.ts | File | 684 B | 0644 |
|
index.js | File | 330 B | 0644 |
|
license | File | 1.08 KB | 0644 |
|
package.json | File | 3.46 KB | 0644 |
|
readme.md | File | 1.56 KB | 0644 |
|