New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

location-origin

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

location-origin

Polyfill for window.location.origin

latest
Source
npmnpm
Version
1.1.4
Version published
Weekly downloads
3.8K
-27.08%
Maintainers
1
Weekly downloads
 
Created
Source

location-origin.js

Bower version NPM version Build Status devDependency Status

browser support

Polyfill for window.location.origin

// On http://yourhost:5000/path/to/page

window.location.origin; //=> "http://yourhost:5000"

Installation

Install with package manager

Bower

bower i --save location-origin

Component

component install shinnn/location-origin.js

npm (Use with Browserify etc.)

npm i --save location-origin

Standalone

Download the script file directly.

Acknowledgements

I used the blog post by Toby Osbourn as reference. Thanks, tosbourn.

License

src/location-origin.coffee and dist/location-origin.js are licensed under the Unlicense.

All other source code is licensed under the MIT license.

Keywords

location

FAQs

Package last updated on 28 Jul 2014

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