1.0.9 • Published 5 years ago

js-handy-url v1.0.9

Weekly downloads
23
License
MIT
Repository
github
Last release
5 years ago

js-url

Provides basic url handling and allows to simply work with urls without juggling all the time with regular expressions. If the class is initialised without an url parameter, it will take the current URL.

installation

bower install -S js-handy-url
npm install js-handy-url

usage

You can simply use it like this:

define(['js-url'], function(URL)) {

  var url = new URL(); // the current url 
  
  
  // do something without regex hassle
  url.addParameter('new', 'paramvalue');
  
  url.removeParamter('old');
  
  ....
  
  
  // use it in the end as a plain string:
  var urlstring = url.toString();
  
}

Development

tests

npm test
1.0.9

5 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

7 years ago