MCPcopy
hub / github.com/sindresorhus/query-string / extract

Function extract

base.js:359–367  ·  view source on GitHub ↗
(input)

Source from the content-addressed store, hash-verified

357}
358
359export function extract(input) {
360 input = removeHash(input);
361 const queryStart = input.indexOf('?');
362 if (queryStart === -1) {
363 return '';
364 }
365
366 return input.slice(queryStart + 1);
367}
368
369export function parse(query, options) {
370 options = {

Callers 2

parseUrlFunction · 0.85
stringifyUrlFunction · 0.85

Calls 1

removeHashFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…