# query-filter **Repository Path**: mirrors_alexgorbatchev/query-filter ## Basic Information - **Project Name**: query-filter - **Description**: Utility module which removes all matching query/get parameters from URL using regular expressions - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-24 - **Last Updated**: 2026-07-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # query-filter Utility module which removes all matching GET parameters from URL using regular expressions. [![Dependency status](https://david-dm.org/alexgorbatchev/query-filter.png)](https://david-dm.org/alexgorbatchev/query-filter) [![devDependency Status](https://david-dm.org/alexgorbatchev/query-filter/dev-status.png)](https://david-dm.org/alexgorbatchev/query-filter#info=devDependencies) [![Build Status](https://secure.travis-ci.org/alexgorbatchev/query-filter.png?branch=master)](https://travis-ci.org/alexgorbatchev/query-filter) [![NPM](https://nodei.co/npm/query-filter.png?downloads=true)](https://npmjs.org/package/query-filter) ## Support Please help me spend more time developing and maintaining awesome modules like this by donating! The absolute best thing to do is to sign up with [Gittip](http://gittip.com) if you haven't already and donate just $1 a week. That is roughly a cup of coffee per month. Also, please do donate to many other amazing open source projects! [![Gittip](http://img.shields.io/gittip/alexgorbatchev.png)](https://www.gittip.com/alexgorbatchev/) [![PayPayl donate button](http://img.shields.io/paypal/donate.png?color=yellow)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=PSDPM9268P8RW "Donate once-off to this project using Paypal") ## Installation npm install query-filter ## Testing npm test ## Using var queryFilter = require('query-filter'); var url = 'http://localhost?param1=1¶m2=1¶m3¶m4'; var filters = ['param[23]', /param1/]; queryFilter(url, filters); // http://localhost/?param4= ## Other modules * [jade-compiler](https://github.com/alexgorbatchev/jade-compiler) * [stylus-compiler](https://github.com/alexgorbatchev/stylus-compiler) * [coffee-compiler](https://github.com/alexgorbatchev/coffee-compiler) * [coffee-errors](https://github.com/alexgorbatchev/coffee-errors) * [bubble-boy](https://github.com/alexgorbatchev/bubble-boy) * [syntaxhighlighter](https://github.com/alexgorbatchev/syntaxhighlighter) * [query-filter](https://github.com/alexgorbatchev/query-filter) ## License The MIT License (MIT) Copyright (c) 2013-2014 Alex Gorbatchev Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.