<commit_before># nwjs-open-link-in-browser

[![NPM version][npm-image]][npm-url] [![Travis-CI Status][travis-image]][travis-url] [![Appveyor Status][appveyor-image]][appveyor-url] [![Daviddm Status][daviddm-image]][daviddm-url]

> Open a link in browser for NW.js and browser.

#### NW.js app to browser

![NW.js to browser](https://cloud.githubusercontent.com/assets/75448/8766185/d31b7a8c-2e68-11e5-9e25-9ef01bfb3606.gif)

####browser to browser

![browser to browser](https://cloud.githubusercontent.com/assets/75448/8766204/4174fdc8-2e69-11e5-969b-6c46a0f87c45.gif)


## Install

```
$ npm install --save nwjs-open-link-in-browser
```


## Usage

```html
var nwjsOpenLinkInBrowser = require("nwjs-open-link-in-browser");

<a href="https://github.com/lyrictenor/nwjs-emoji-app"
  onClick="nwjsOpenLinkInBrowser();"
  >
  github.com/lyrictenor/nwjs-emoji-app
</a>

<button
  onclick="nwjsOpenLinkInBrowser('http://example.com');"
  >
  Example.com
</button>
```

### JSX

```html
var nwjsOpenLinkInBrowser = require("nwjs-open-link-in-browser");

<a href="https://github.com/lyrictenor/nwjs-emoji-app"
  onClick={nwjsOpenLinkInBrowser.bind(this)}
  >
  github.com/lyrictenor/nwjs-emoji-app
</a>

<button
  onClick={nwjsOpenLinkInBrowser.bind(this, 'http://example.com')}
  >
  Example.com
</button>
```



## API<commit_msg>docs(readme): update<commit_after># nwjs-open-link-in-browser

[![NPM version][npm-image]][npm-url] [![Travis-CI Status][travis-image]][travis-url] [![Appveyor Status][appveyor-image]][appveyor-url] [![Daviddm Status][daviddm-image]][daviddm-url]

> Open a link in browser for NW.js and browser.

#### NW.js app to browser

![NW.js to browser](https://cloud.githubusercontent.com/assets/75448/8766185/d31b7a8c-2e68-11e5-9e25-9ef01bfb3606.gif)

####browser to browser

![browser to browser](https://cloud.githubusercontent.com/assets/75448/8766204/4174fdc8-2e69-11e5-969b-6c46a0f87c45.gif)


## Install

```
$ npm install --save nwjs-open-link-in-browser
```


## Usage

```html
var nwjsOpenLinkInBrowser = require("nwjs-open-link-in-browser");

<a href="https://github.com/lyrictenor/nwjs-emoji-app"
  onClick="nwjsOpenLinkInBrowser();"
  >
  github.com/lyrictenor/nwjs-emoji-app
</a>

<button
  type="button"
  onclick="nwjsOpenLinkInBrowser('http://example.com');"
  >
  Example.com
</button>
```

### JSX

```html
var nwjsOpenLinkInBrowser = require("nwjs-open-link-in-browser");

<a href="https://github.com/lyrictenor/nwjs-emoji-app"
  onClick={nwjsOpenLinkInBrowser.bind(this)}
  >
  github.com/lyrictenor/nwjs-emoji-app
</a>

<button
  type="button"
  onClick={nwjsOpenLinkInBrowser.bind(this, "http://example.com")}
  >
  Example.com
</button>
```



## API
{'fraction_non_alphanumeric': 0.18840579710144928, 'fraction_numerical': 0.04905239687848383, 'mean_word_length': 4.929515418502203, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 21, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '698013', 'n_tokens_mistral': 1214, 'n_tokens_neox': 1103, 'n_words': 136}