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

tiny-querystring

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tiny-querystring

Tiny parsing and formatting URL query strings for Node.js and browser

  • 0.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
761
decreased by-3.06%
Maintainers
1
Weekly downloads
 
Created
Source

tiny-querystring

Build Status Coverage Status License

Tiny parsing and formatting URL query strings for Node.js and browser. (309B only)

Installation

NPM
npm install tiny-querystring
Yarn
yarn add tiny-querystring
1998 Script Tag
<script src="https://unpkg.com/tiny-querystring/dist/tiny-querystring.umd.js"></script>

Usage

parse(str)

Parses a URL query string (str) into a collection of key and value pairs.

Example
import { parse } from 'tiny-querystring';
parse('foo=bar&abc=xyz&abc=123');

/* returns { foo: 'bar', abc: ['xyz', '123'] } */

stringify(obj)

Produces a URL query string from a given obj by iterating through the object's "own properties".

Example
import { stringify } from 'tiny-querystring';
stringify({ foo: 'bar', baz: ['qux', 'quux'], corge: '' });

/* returns 'foo=bar&baz=qux&baz=quux&corge=' */

Contributing

Contributing

License

MIT

Keywords

FAQs

Package last updated on 17 Dec 2017

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