Nice Parakeet Marriage

    query-boy

    1.1.0 • Public • Published

    query-boy

    Build Status

    Usage example

    import Query from 'query-boy';
    const test = new Query();
    const query = new Query('/include');
    
    query.addParam('length', '3');
    query.addParam('name', 'jane');
    query.getQuery();
    -> '/include?length=3&name=jane'
    
    query.removeParam('name');
    query.getQuery();
    -> '/include?length=3'
    

    Methods

    • getQuery()
    • addParam(identifier, value, position) // position optional
    • removeParam(identifier)
    • getValue(identifier)
    • clear()

    Install

    npm i query-boy

    DownloadsWeekly Downloads

    0

    Version

    1.1.0

    License

    ISC

    Unpacked Size

    12.2 kB

    Total Files

    7

    Last publish

    Collaborators

    • atomstrom