url-to-options

WebJar for url-to-options

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

url-to-options
Last Version

Last Version

1.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

url-to-options
WebJar for url-to-options
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/stevenvachon/url-to-options

Download url-to-options

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/url-to-options/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>url-to-options</artifactId>
    <version>1.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/url-to-options/
implementation 'org.webjars.npm:url-to-options:1.0.1'
// https://jarcasting.com/artifacts/org.webjars.npm/url-to-options/
implementation ("org.webjars.npm:url-to-options:1.0.1")
'org.webjars.npm:url-to-options:jar:1.0.1'
<dependency org="org.webjars.npm" name="url-to-options" rev="1.0.1">
  <artifact name="url-to-options" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='url-to-options', version='1.0.1')
)
libraryDependencies += "org.webjars.npm" % "url-to-options" % "1.0.1"
[org.webjars.npm/url-to-options "1.0.1"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

url-to-options NPM Version Build Status

Convert a WHATWG URL to an http.request/https.request options object.

Installation

Node.js >= 8 is required. To install, type this at the command line:

npm install url-to-options

Usage

const urlToOptions = require('url-to-options');

const url = new URL('http://user:pass@hostname:8080/');

const opts = urlToOptions(url);
//-> { auth:'user:pass', port:8080, … }

Versions

Version
1.0.1