ext-utils/querystr.js

12 lines
275 B
JavaScript
Raw Normal View History

2016-05-31 09:56:05 +00:00
var cl = global.botanLoader;
var CondStream = cl.load( "botanss.utils.CondStream" );
2016-06-16 07:30:40 +00:00
var querystr = require( "querystring" );
2016-05-31 09:56:05 +00:00
module.exports = {
queryStr: function( qstr )
{
if( qstr instanceof CondStream ) qstr = qstr.toString();
2016-06-16 07:30:40 +00:00
return querystr.parse( qstr );
2016-05-31 09:56:05 +00:00
}
};