JairusSW / as-querystring

Parse URL Querys In AssemblyScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Parse URL Querys In AssemblyScript

License:MIT License


Languages

Language:WebAssembly 99.5%Language:JavaScript 0.3%Language:TypeScript 0.2%