get-location-origin
v1.0.0
Published
Get the window.location.origin string - even if not supported by the browser
Downloads
18
Maintainers
Readme
get-location-origin
Get the window.location.origin string - even if not supported by the browser
- This is not a polyfill
- Does not modify the
window.location
object
Install
npm install --save get-location-origin
Usage
var origin = require('get-location-origin');
console.log(origin);
// => "http://localhost:3000"