whitelist-query-params

0.0.2 • Public • Published

Whitelist query params Build Status

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.

License

MIT © Michael Leaney

Readme

Keywords

none

Package Sidebar

Install

npm i whitelist-query-params

Weekly Downloads

2

Version

0.0.2

License

none

Unpacked Size

174 kB

Total Files

14

Last publish

Collaborators

  • leahcimic