0.4.0 • Published 5 years ago

location-changed v0.4.0

Weekly downloads
3
License
MIT
Repository
github
Last release
5 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

5 years ago

0.3.4

5 years ago

0.3.3

5 years ago

0.3.2

5 years ago

0.3.1

5 years ago

0.3.0

5 years ago

0.2.0

5 years ago