as-querystring

Parse URL Querys In AssemblyScript


Keywords
parse, query, querystring, url
License
MIT
Install
npm install as-querystring@1.0.0

Documentation

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