location-href

Simple Node-friendly interface to the browser's location

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
location-href
501.0.08 years ago8 years agoMinified + gzip package size for location-href in KB

Readme

location-href Build Status
Simple Node-friendly interface to the browser's location

Install

$ npm install --save location-href

Usage

var location = require('location-href')
location()
//=> http://the/current/location
location.set('http://new/location')
//=> browser transitions to new location

API

location() -> string

Call to get the current location.

location.set(href) -> undefined

href
Required
Type: string
The new location.

License

MIT © Ben Drucker