get-location-origin

1.0.0 • Public • Published

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"

Package Sidebar

Install

npm i get-location-origin

Weekly Downloads

2

Version

1.0.0

License

MIT

Last publish

Collaborators

  • noeldelgado