An open API service indexing awesome lists of open source software.

https://github.com/b13/js-url


https://github.com/b13/js-url

Last synced: 9 months ago
JSON representation

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"));
});
```