1.0.12 • Published 6 years ago

parseqstring v1.0.12

Weekly downloads
2
License
ISC
Repository
github
Last release
6 years ago

TOC

About

Just change a query string to a mongo's match object

Installation

$ npm install parseqstring -g

Example

const parseQstring = require('parseqstring');

let qs = 'at>15,tid==01,at<200,hid~=A04,at!=101,hid!=A01,pid==,cid!=00,ppd>';

let result = parseQstring(qs, { at: true });

//{"at":{"$gt":15,"$lt":200,"$ne":101},"tid":{"$eq":"01"},"hid":{"$regex":"A04","$ne":"A01"},"cid":{"$ne":"00"}}
1.0.12

6 years ago

1.0.11

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago