MCPcopy Create free account
hub / github.com/bigskysoftware/_hyperscript / getFlagValue

Function getFlagValue

src/platform/node-hyperscript.js:265–269  ·  view source on GitHub ↗
(flag)

Source from the content-addressed store, hash-verified

263// ===== Utilities =====
264
265function getFlagValue(flag) {
266 const idx = argv.indexOf(flag);
267 if (idx === -1 || idx + 1 >= argv.length) return null;
268 return argv[idx + 1];
269}
270
271function escapeRegex(str) {
272 return str.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');

Callers 1

validateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected