Socket
Book a DemoInstallSign in
Socket

as-querystring

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

as-querystring

Parse URL Querys In AssemblyScript

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

AS-Querystring

Parse URL Querys In AssemblyScript

About

  • AssemblyScript Compatible
  • Isomorphic (Browser / Node)

Installation

~ npm install as-querystring --save

Usage

Basic Usage

import { qs } from 'as-querystring'

const query = qs('https://example.com?username=JohnDoe&password=thesecretorange')
//=> Map {[['username', 'JohnDoe'], ['password', 'thesecretorange']]}

query.get('username')
// JohnDoe

query.get('password')
// thesecretorange

API

qs(url: string) -->> Map<string, string>

Parse a URL and output the queries

Keywords

parse

FAQs

Package last updated on 18 Mar 2021

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