JSPM

query-stringifier

1.2.0
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 4
    • Score
      100M100P100Q33290F
    • License MIT

    A small library for build query strings

    Package Exports

    • query-stringifier

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (query-stringifier) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    Query-Stringifier Build Status npm version

    A small library for build query strings

    Install

    npm install query-stringifier

    Usage

    const qs = require('query-stringifier');
    
    const params = {
        food: pizza,
        bar: chocolate
    }
    
    qs.stringify(params);
    // 'food=pizza&bar=chocolate'
    
    // Also add options!
    
    const options = { prefix: '?' };
    
    qs.stringify(params, options);
    // '?food=pizza&bar=chocolate'
    
    
    // Parse query strings into objects
    qs.parse('?food=pizza&bar=chocolate');
    // { food: pizza, bar: chocolate }

    Issues?

    Go here