Buckets:
| ; | |
| const shebangRegex = require('shebang-regex'); | |
| module.exports = (string = '') => { | |
| const match = string.match(shebangRegex); | |
| if (!match) { | |
| return null; | |
| } | |
| const [path, argument] = match[0].replace(/#! ?/, '').split(' '); | |
| const binary = path.split('/').pop(); | |
| if (binary === 'env') { | |
| return argument; | |
| } | |
| return argument ? `${binary} ${argument}` : binary; | |
| }; | |
Xet Storage Details
- Size:
- 387 Bytes
- Xet hash:
- 6e678742b61eaf69d0eb02a718f1204722a90a1da3d7953483d6a2b8a09eabdf
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.