tiny-parse

3.0.3 • Public • Published

tiny-parse

build status

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.

Readme

Keywords

Package Sidebar

Install

npm i tiny-parse

Weekly Downloads

28

Version

3.0.3

License

BSD-3-Clause

Unpacked Size

1.48 MB

Total Files

9

Last publish

Collaborators

  • avoidwork