URL parsing with coercion of query
"use strict";
const parse = require("tiny-parse");
console.log(parse("http://localhost/?abc=true").query.abc === true); // true
console.log(parse("http://localhost/?abc=true", false).query.abc === true); // false
parse(arg, coerce=true)
Parses the input, accepts a URL or http.ClientRequest
Copyright (c) 2018 Jason Mulligan Licensed under the BSD-3 license.