as-querystring

1.0.0 • Public • Published

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

/as-querystring/

    Package Sidebar

    Install

    npm i as-querystring

    Weekly Downloads

    8

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    153 kB

    Total Files

    11

    Last publish

    Collaborators

    • slicewire-dev
    • jairussw