Not Particularly Meaningful

    http-query-builder

    1.0.0 • Public • Published

    http_build_query in JavaScript

    Port of PHP's Http Query Builder into JavaScript

    Instalation

      $ npm install http-query-builder

    Usage

     
    import httpBuildQuery from 'http-query-builder';
     
    // 1. parameter - any array, object, null or undefined
    // 2. parameter - argument separator - defaults to '&'
    const query: string = httpBuildQuery({ 
       orderBy: [
         { column: 'created', desc: true
       ]
    }); // expects: orderBy[0][column]=created&orderBy[0][desc]=1
     

    Install

    npm i http-query-builder

    DownloadsWeekly Downloads

    191

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    9.63 kB

    Total Files

    10

    Last publish

    Collaborators

    • malusev