tiny-parse
v3.0.3
Published
URL parsing with coercion of `query`
Downloads
243
Readme
tiny-parse
URL parsing with coercion of query
Example
"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
API
parse(arg, coerce=true)
Parses the input, accepts a URL or http.ClientRequest
License
Copyright (c) 2018 Jason Mulligan Licensed under the BSD-3 license.