as-querystring
v1.0.0
Published
Parse URL Querys In AssemblyScript
Downloads
4
Readme
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