stevenvachon / cloneurl

Clone a WHATWG URL instance.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cloneurl NPM Version Build Status Dependency Monitor

Clone a WHATWG URL instance.

This module's browser version contains no URL shim.

Installation

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

npm install cloneurl

Usage

const cloneURL = require('cloneurl');

const b = cloneURL(a);

console.log(b === a);
//-> false

console.log(b.href === a.href);
//-> true

About

Clone a WHATWG URL instance.

License:MIT License


Languages

Language:JavaScript 100.0%