Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/baralmanish/pushdatatourl
This is a plugin to add, update and remove data to url params without reloading the webpage.
https://github.com/baralmanish/pushdatatourl
javascript javascript-library javascript-plugin npm-package nuget-package plugin url-parameters urlparams
Last synced: about 2 months ago
JSON representation
This is a plugin to add, update and remove data to url params without reloading the webpage.
- Host: GitHub
- URL: https://github.com/baralmanish/pushdatatourl
- Owner: baralmanish
- License: mit
- Created: 2019-04-16T11:02:42.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-20T07:33:30.000Z (over 4 years ago)
- Last Synced: 2024-11-07T10:03:46.203Z (about 2 months ago)
- Topics: javascript, javascript-library, javascript-plugin, npm-package, nuget-package, plugin, url-parameters, urlparams
- Language: HTML
- Size: 37.1 KB
- Stars: 18
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Push to URL parameters
This is a plugin to add, update and remove data to url params without reloading the webpage.## Setup Commands
- `npm install` - Install npm packages
- `npm run build` - Babel will transpile ES6 => ES5 and minify the code.
- `npm run prepublish` - Hook for npm. Do all the checks before publishing your module.## Installation
### [NPM](https://www.npmjs.com/package/push-data-to-url)
`npm i push-data-to-url`
### [Nuget](https://www.nuget.org/packages/PushDataToUrl)
- Package Manager: `PM> Install-Package PushDataToUrl`
- .Net CLI: `> dotnet add package PushDataToUrl`
- Paket CLI: `> paket add PushDataToUrl`## DEMO
To view the demo please click [here](https://push2url.netlify.app)## Implementation
### Initialize
```javascript
var pushToUrl = new pushToUrl();
```
### Add
```javascript
pushToUrl.add({key: 'name', value: 'John'});
```
### Get Value of Selected Key
```javascript
pushToUrl.get('name');
```
### Remove Selected Key
```javascript
pushToUrl.remove('name');
```
### Remove All
```javascript
pushToUrl.removeAll();
```