Neo Zero

query

Pool

Modern, tree-shakeable URL query string parser/stringifier with TypeScript support

$ lpm install @lpm.dev/neo.query
36 exportsTypeScript

dist/compat

Functions

toSearchParams
function toSearchParams(query: StringifiableQuery, options?: StringifyOptions): URLSearchParams
ParameterTypeDescription
query
StringifiableQuery
optionsoptional
StringifyOptions
fromSearchParams
function fromSearchParams(params: URLSearchParams, options?: ParseOptions): ParsedQuery
ParameterTypeDescription
params
URLSearchParams
optionsoptional
ParseOptions

dist/compat

Functions

toSearchParams
function toSearchParams(query: StringifiableQuery, options?: StringifyOptions): URLSearchParams
ParameterTypeDescription
query
StringifiableQuery
optionsoptional
StringifyOptions
fromSearchParams
function fromSearchParams(params: URLSearchParams, options?: ParseOptions): ParsedQuery
ParameterTypeDescription
params
URLSearchParams
optionsoptional
ParseOptions

dist/exclude-DT7gACgB

Functions

pick
function pick(query: ParsedQuery, keys: string[]): ParsedQuery
ParameterTypeDescription
query
ParsedQuery
keys
string[]
exclude
function exclude(query: ParsedQuery, keys: string[]): ParsedQuery
ParameterTypeDescription
query
ParsedQuery
keys
string[]

dist/exclude-xxhyyy4q

Functions

pick
function pick(query: ParsedQuery, keys: string[]): ParsedQuery
ParameterTypeDescription
query
ParsedQuery
keys
string[]
exclude
function exclude(query: ParsedQuery, keys: string[]): ParsedQuery
ParameterTypeDescription
query
ParsedQuery
keys
string[]

dist/parse-CQvkKEiu

Functions

parse
function parse(query: string, options?: ParseOptions): ParsedQuery
ParameterTypeDescription
query
string
optionsoptional
ParseOptions

dist/parse-Dt0rWFJV

Functions

parse
function parse(query: string, options?: ParseOptions): ParsedQuery
ParameterTypeDescription
query
string
optionsoptional
ParseOptions

dist/parse

Functions

defaultDecoder
function defaultDecoder(str: string): string
ParameterTypeDescription
str
string
decodeValue
function decodeValue(value: string, decoder?: (value: string, defaultDecoder: (str: string) => string) => string): string
ParameterTypeDescription
value
string
decoderoptional
(value: string, defaultDecoder: (str: string) => string) => string
parseType
function parseType(value: string, options: ParseOptions): QueryValue
ParameterTypeDescription
value
string
options
ParseOptions

dist/parse

Functions

defaultDecoder
function defaultDecoder(str: string): string
ParameterTypeDescription
str
string
decodeValue
function decodeValue(value: string, decoder?: (value: string, defaultDecoder: (str: string) => string) => string): string
ParameterTypeDescription
value
string
decoderoptional
(value: string, defaultDecoder: (str: string) => string) => string
parseType
function parseType(value: string, options: ParseOptions): QueryValue
ParameterTypeDescription
value
string
options
ParseOptions

dist/stringify-Br43TfYj

Functions

stringify
function stringify(obj: StringifiableQuery, options?: StringifyOptions): string
ParameterTypeDescription
obj
StringifiableQuery
optionsoptional
StringifyOptions

dist/stringify-CSqxrjnN

Functions

stringify
function stringify(obj: StringifiableQuery, options?: StringifyOptions): string
ParameterTypeDescription
obj
StringifiableQuery
optionsoptional
StringifyOptions

dist/stringify

Functions

strictEncoder
function strictEncoder(str: string): string
ParameterTypeDescription
str
string
defaultEncoder
function defaultEncoder(str: string): string
ParameterTypeDescription
str
string
encodeValue
function encodeValue(value: string, strict: boolean, encoder?: (value: string, defaultEncoder: (str: string) => string) => string): string
ParameterTypeDescription
value
string
strict
boolean
encoderoptional
(value: string, defaultEncoder: (str: string) => string) => string
encodeKey
function encodeKey(key: string, strict: boolean, encoder?: (value: string, defaultEncoder: (str: string) => string) => string): string
ParameterTypeDescription
key
string
strict
boolean
encoderoptional
(value: string, defaultEncoder: (str: string) => string) => string

dist/stringify

Functions

strictEncoder
function strictEncoder(str: string): string
ParameterTypeDescription
str
string
defaultEncoder
function defaultEncoder(str: string): string
ParameterTypeDescription
str
string
encodeValue
function encodeValue(value: string, strict: boolean, encoder?: (value: string, defaultEncoder: (str: string) => string) => string): string
ParameterTypeDescription
value
string
strict
boolean
encoderoptional
(value: string, defaultEncoder: (str: string) => string) => string
encodeKey
function encodeKey(key: string, strict: boolean, encoder?: (value: string, defaultEncoder: (str: string) => string) => string): string
ParameterTypeDescription
key
string
strict
boolean
encoderoptional
(value: string, defaultEncoder: (str: string) => string) => string

dist/url

Functions

extract
function extract(url: string): string
ParameterTypeDescription
url
string
parseUrl
function parseUrl(url: string, options?: ParseOptions): ParsedUrl
ParameterTypeDescription
url
string
optionsoptional
ParseOptions
stringifyUrl
function stringifyUrl(components: UrlComponents, options?: StringifyOptions): string
ParameterTypeDescription
components
UrlComponents
optionsoptional
StringifyOptions

dist/url

Functions

extract
function extract(url: string): string
ParameterTypeDescription
url
string
parseUrl
function parseUrl(url: string, options?: ParseOptions): ParsedUrl
ParameterTypeDescription
url
string
optionsoptional
ParseOptions
stringifyUrl
function stringifyUrl(components: UrlComponents, options?: StringifyOptions): string
ParameterTypeDescription
components
UrlComponents
optionsoptional
StringifyOptions

dist/utils

Functions

splitQuery
function splitQuery(query: string): string[]
ParameterTypeDescription
query
string
splitPair
function splitPair(pair: string): [string, string]
ParameterTypeDescription
pair
string

dist/utils

Functions

splitQuery
function splitQuery(query: string): string[]
ParameterTypeDescription
query
string
splitPair
function splitPair(pair: string): [string, string]
ParameterTypeDescription
pair
string
Unlimited AccessInstall as many Pool packages as you need.
Fund Real WorkEvery install you run sends revenue directly to the developer who built it.

Taxes calculated at checkout based on your location.

Weekly Installs
3
Version
1.0.0
Published
LicenseMIT
Size583.11 KB
Files51
Node version>= 18
TypeScriptYes