incomplete-url
Custom-remove features of a URL implementation.
Last updated 3 months ago by stevenvachon .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install incomplete-url 
SYNC missed versions from official npm registry.

incomplete-url NPM Version Build Status Coverage Status

Custom-remove features of a URL implementation.

This is useful when simulating the incomplete URL implementations available in some web browsers from 2017.

[!NOTE]

If you need to support older versions of Node.js (going back to 8.x), use 4.x of this package.

Install

npm install incomplete-url

Usage

import customizeURL from '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.

Current Tags

  • 5.0.0                                ...           latest (3 months ago)
  • 5.0.0-rc                                ...           rc (3 months ago)

8 Versions

  • 5.0.0                                ...           3 months ago
  • 5.0.0-rc [deprecated]           ...           3 months ago
  • 4.0.0                                ...           8 years ago
  • 3.0.0 [deprecated]           ...           8 years ago
  • 2.0.0                                ...           8 years ago
  • 1.0.2                                ...           9 years ago
  • 1.0.1                                ...           9 years ago
  • 1.0.0                                ...           9 years ago
Maintainers (1)
Downloads
Total 7
Today 0
This Week 0
This Month 7
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (6)
Dependents (0)
None

© 2010 - cnpmjs.org x YWFE | Home | YWFE