Novice Pokémon Master

    query-stringifier

    1.2.0 • Public • Published

    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

    Install

    npm i query-stringifier

    DownloadsWeekly Downloads

    1

    Version

    1.2.0

    License

    MIT

    Last publish

    Collaborators

    • joshghent