Nuclear Pumpkin Mayhem

    query-types

    0.1.4 • Public • Published

    query-types

    Handles numeric and boolean values for Express req.query object.

    Setup

    $ npm install --save query-types
    

    Usage

    var queryType = require('query-types');
    var express = require('express');
     
    app.use(queryType.middleware())
     
    app.get('/', function(req, res) {
      res.json(req.query); // Response example: { enabled: true, price: 123.13, name: 'John Smith', origin: [31.412, 41.213] }  
    });

    Install

    npm i query-types

    DownloadsWeekly Downloads

    1,120

    Version

    0.1.4

    License

    MIT

    Last publish

    Collaborators

    • xpepermint