petkaantonov / querystringparser

Extremely fast querystring parser for Javascript
MIT License
23 stars 2 forks source link

Independent serializer? #2

Closed tjconcept closed 7 years ago

tjconcept commented 9 years ago

Could the serializer part be split to an independent module?

var qss = require('querystringserializer');
qss({ key: 'value' }); // key=value

Is way nicer than:

var Qss = require('querystringparser/js/querystringserializer');
(new Qss()).serialize({ key: 'value' });

Or am I totally bikeshedding here? :laughing:

tjconcept commented 7 years ago

Just realised this has been available all the time as qs.stringify. Now I feel stupid.