GitXplorerGitXplorer
T

origin-url

public
0 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
5f6f13c198475aa79515baf0276a357a5804d170

1.0.0

TTimer committed 8 years ago
Unverified
d4b8c6e5af1e616ee05ebb4b4fb4ce09dfea85ae

Initial commit

TTimer committed 8 years ago

README

The README file for this repository.

origin-url

Returns the window's current origin.

Install

$ npm i origin-url -S

Usage

import origin from 'origin-url'

// window url: https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/origin
console.log(`${origin}`)
// # => "https://developer.mozilla.org"