locustjs-querystring

    1.1.0 • Public • Published

    locustjs-querystring

    This library provides querystring utilities.

    Currently there is a single function named parseQuery() in this library that eases parsing strings in querystring format. It receives a string and returns a json object.

    import { parseQuery } from 'locustjs-querystring';
    
    var result = parseQuery('name=John%20Doe&age=23&city=UK&agree=true');
    
    console.log(result);
    
    /*
      {
        age: "23",
        agree: "true",
        city: "UK",
        name: "John Doe",
      }
    */

    Install

    npm i locustjs-querystring

    DownloadsWeekly Downloads

    4

    Version

    1.1.0

    License

    MIT

    Unpacked Size

    13.6 kB

    Total Files

    10

    Last publish

    Collaborators

    • mansoor-omrani