New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

fast-qs

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fast-qs

A lightweight library for parsing and stringifying URL query strings.

latest
Source
npmnpm
Version
2.1.2
Version published
Maintainers
1
Created
Source

fast-qs

npm package

NPM version NPM Downloads jsdelivr

A lightweight library for parsing and stringifying URL query strings.

Documentation

For detailed usage instructions and API references, please visit the official documentation:

👉 View Full Documentation

Quick Start

import { parse, stringify } from 'fast-qs';

// Parse a query string
const params = parse('name=John&age=30');
console.log(params); // → { name: 'John', age: '30' }

// Stringify an object
const query = stringify({ city: 'New York', country: 'USA' });
console.log(query); // → "city=New%20York&country=USA"

Core Features

⚡ Key Features

FeatureDescription
Custom SeparatorsSupport any separators (e.g., `parse('a
Empty Value Handlingf={ f: '' }, &={ '': '' }
Duplicate KeysAutomatically converted to arrays (e.g., a=1&a=2{ a: ['1', '2'] }
Invalid EncodingRetains invalid %xx (e.g., %%, %A%A
URL ParsingAutomatically extracts parameters after ?, supports start to specify position
Filter ExtensionFilter/transform keys/values via filter (e.g., filter sensitive fields)

Contributing

We welcome contributions from the community! If you find a bug or want to suggest an improvement, feel free to open an issue or submit a pull request.

How to Contribute

  • Fork the repository.
  • Create a new branch for your changes.
  • Submit a pull request with a clear description of your changes.

License

This project is licensed under the MIT License.

Browser Support

ChromeFirefoxSafariOperaEdge
Latest ✔Latest ✔Latest ✔Latest ✔Latest ✔

Keywords

querystring

FAQs

Package last updated on 05 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts