1.0.0 • Published 10 years ago
location-href v1.0.0
location-href 
Simple Node-friendly interface to the browser's
location
Install
$ npm install --save location-hrefUsage
var location = require('location-href')
location()
//=> http://the/current/location
location.set('http://new/location')
//=> browser transitions to new locationAPI
location() -> string
Call to get the current location.
location.set(href) -> undefined
href
Required
Type: string
The new location.
License
MIT © Ben Drucker
1.0.0
10 years ago