whitelist-query-params
v0.0.2
Published
Filter url query parameters with a whitelist
Downloads
5
Readme
Whitelist query params
Filter url query parameters with a whitelist
Table of Contents
Install
npm i whitelist-query-params
# Or with Yarn
yarn add whitelist-query-params
Usage
import whitelistQueryParams from 'whitelist-query-params';
const url = whitelistQueryParams('http://www.example.org/?foo=bar&baz=qux', ['foo']);
console.log(url); // http://www.example.org/?foo=bar
Contributing
See the contribute file!
PRs accepted.