package
URL parsing with coercion of `query`
npm install tiny-parseGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Estimated unpacked size across 2 packages.
1.4 MB
Includes dependencies.
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); // falseparse(arg, coerce=true)
Parses the input, accepts a URL or http.ClientRequest
Copyright (c) 2018 Jason Mulligan Licensed under the BSD-3 license.