<commit_before># location-origin.js

Polyfill for [`window.location.origin`](http://www.w3schools.com/jsref/prop_loc_origin.asp)

[![browser support](https://ci.testling.com/shinnn/location-origin.js.png)](https://ci.testling.com/shinnn/location-origin.js)

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

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

## Installation

### Install with package manager

#### [Bower](http://bower.io/)

```
bower i --save location-origin
```

#### [Component](http://component.io/)

```
component install shinnn/location-origin.js
```

### Standalone

[Download the script file directly.](https://raw.githubusercontent.com/shinnn/location-origin.js/master/dist/location-origin.js "view raw")

## Acknowledgements
<commit_msg>add badges (Bower, David)<commit_after># location-origin.js

[![Bower version](https://badge.fury.io/bo/location-origin.png)](http://badge.fury.io/bo/location-origin)
[![devDependency Status](https://david-dm.org/shinnn/location-origin.js/dev-status.svg?theme=shields.io)](https://david-dm.org/shinnn/location-origin.js#info=devDependencies)

[![browser support](https://ci.testling.com/shinnn/location-origin.js.png)](https://ci.testling.com/shinnn/location-origin.js)

Polyfill for [`window.location.origin`](http://www.w3schools.com/jsref/prop_loc_origin.asp)

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

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

## Installation

### Install with package manager

#### [Bower](http://bower.io/)

```
bower i --save location-origin
```

#### [Component](http://component.io/)

```
component install shinnn/location-origin.js
```

### Standalone

[Download the script file directly.](https://raw.githubusercontent.com/shinnn/location-origin.js/master/dist/location-origin.js "view raw")

## Acknowledgements

{'fraction_non_alphanumeric': 0.2024070021881838, 'fraction_numerical': 0.009846827133479213, 'mean_word_length': 5.016447368421052, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 9, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1906120', 'n_tokens_mistral': 666, 'n_tokens_neox': 628, 'n_words': 77}