Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@smithy/querystring-parser

Package Overview
Dependencies
Maintainers
2
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@smithy/querystring-parser

[![NPM version](https://img.shields.io/npm/v/@smithy/querystring-parser/latest.svg)](https://www.npmjs.com/package/@smithy/querystring-parser) [![NPM downloads](https://img.shields.io/npm/dm/@smithy/querystring-parser.svg)](https://www.npmjs.com/package/@

  • 3.0.10
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
17M
decreased by-6.21%
Maintainers
2
Weekly downloads
 
Created

What is @smithy/querystring-parser?

@smithy/querystring-parser is an npm package designed to parse query strings into JavaScript objects and vice versa. It is useful for handling URL query parameters in web applications, making it easier to work with URL-encoded data.

What are @smithy/querystring-parser's main functionalities?

Parse Query String

This feature allows you to parse a query string into a JavaScript object. The `parse` function takes a query string as input and returns an object with key-value pairs.

const { parse } = require('@smithy/querystring-parser');
const queryString = 'name=John&age=30&city=New%20York';
const parsed = parse(queryString);
console.log(parsed); // { name: 'John', age: '30', city: 'New York' }

Stringify Object to Query String

This feature allows you to convert a JavaScript object into a query string. The `stringify` function takes an object as input and returns a URL-encoded query string.

const { stringify } = require('@smithy/querystring-parser');
const obj = { name: 'John', age: '30', city: 'New York' };
const queryString = stringify(obj);
console.log(queryString); // 'name=John&age=30&city=New%20York'

Other packages similar to @smithy/querystring-parser

FAQs

Package last updated on 14 Nov 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc