Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/delfimov/js-uri-values
https://github.com/delfimov/js-uri-values
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/delfimov/js-uri-values
- Owner: delfimov
- Created: 2012-02-21T14:34:50.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2012-02-21T14:35:45.000Z (over 12 years ago)
- Last Synced: 2023-03-22T13:43:50.917Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 89.8 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
URI values
==========urivalues javascript library
Usage
-----`uriValues.parse(hashValues);`
*hashValues* - URI to decode
`hashValues = uriValues.stringify(obj);`
*obj* - object to be encoded
Example
~~~~~~~~~~
hashValues = location.hash.slice(1);
values = uriValues.parse(hashValues);
hashValues = uriValues.stringify(values);
~~~~~~~~~