Skip to content

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

License

Notifications You must be signed in to change notification settings

aspyropoulos/query-types-v2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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] }  
});

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%