1.0.0 • Published 3 years ago

as-querystring v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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