https://github.com/b13/js-url
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/b13/js-url
- Owner: b13
- Created: 2014-06-18T16:47:46.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2015-03-17T13:49:32.000Z (over 11 years ago)
- Last Synced: 2025-10-09T09:11:44.282Z (9 months ago)
- Language: JavaScript
- Size: 129 KB
- Stars: 0
- Watchers: 11
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
js-youtube
=================
Module to get easy access to the url and hash parameters
# requireJS config
```js
var require = {
paths: {
'url' : 'path/to/url'
}
};
```
# Basic usage
```js
require(['url'], function(url) {
// get all url and hash params as object
console.log(url.getAllUrlAndHashParams());
// get value of a url or hash param from the current url
console.log(url.getValueForUrlOrHashParam("param"));
});
```