0.4.0 • Published 6 years ago

location-changed v0.4.0

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

Location Changed

Observe and programmatically change the browser's location

Installation

$ npm install --save location-changed
import locationChange from 'location-changed'

Example

import locationChange from 'location-changed'

// current route is '/hello'
const observable = locationChange((path) => {
  console.log(path) // -> /hello?name=Mark
})
observable.path = '/hello?name=Mark'

Attribution

Most of the heavy lifting is provided by libraries written by @sindresorhus and @WebReflection.

0.4.0

6 years ago

0.3.4

6 years ago

0.3.3

6 years ago

0.3.2

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.0

6 years ago