1.0.12 • Published 7 years ago

parseqstring v1.0.12

Weekly downloads
2
License
ISC
Repository
github
Last release
7 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

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago