New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

get-location-origin

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

get-location-origin

Get the window.location.origin string - even if not supported by the browser

1.0.0
latest
npm
Version published
Weekly downloads
2
100%
Maintainers
1
Weekly downloads
 
Created
Source

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"

Keywords

window

FAQs

Package last updated on 19 Jul 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts