New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

incomplete-url

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

incomplete-url

Custom-remove features of a WHATWG URL implementation.

latest
Source
npmnpm
Version
4.0.0
Version published
Maintainers
1
Created
Source

incomplete-url NPM Version Build Status Coverage Status Dependency Monitor

Custom-remove features of a WHATWG URL implementation.

This is useful when simulating the incomplete URL implementations available in some of today's modern web browsers.

Installation

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

npm install incomplete-url

Usage

const customizeURL = require('incomplete-url');

const options = {
  paramsExclusions: ['sort'],
  urlExclusions: ['origin']
};

const {IncompleteURL, IncompleteURLSearchParams} = customizeURL(options);

const url = new IncompleteURL('http://domain/');
const params = new IncompleteURLSearchParams('param=value');

Options

paramsExclusions

Type: Array
Default value: []
The output URLSearchParams class (and URL::searchParams) will not expose each listed property/method when instantiated.

urlExclusions

Type: Array
Default value: []
The output URL class will not expose each listed property/method when instantiated.

Keywords

uri

FAQs

Package last updated on 31 Dec 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts