0.0.2 • Published 5 years ago

whitelist-query-params v0.0.2

Weekly downloads
14
License
-
Repository
github
Last release
5 years ago

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

0.0.2

5 years ago

0.0.1

5 years ago