0.1.0 • Published 3 years ago

update-query-param v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

update-query-param

A Node.js module which update query param from url with given value.

Installation

npm install update-query-param --save

Params: Object which needs -

Usage

Assume we have a query string with a value of:

"?color=red";

Configuring

const updateQueryParam = require('update-query-param')

updateQueryParam({ 
  key: 'color',
  value: 'blue',
}); // ?color=blue

License

Copyright © 2021, Tanvir Rahman. Released under the MIT License.