# java-home

[![NPM version][npm-image]][npm-url]
[![build status][travis-image]][travis-url]
[![node version][node-image]][node-url]
[![npm download][download-image]][download-url]

[npm-image]: https://img.shields.io/npm/v/java-home.svg?style=flat-square
[npm-url]: https://npmjs.org/package/java-home
[travis-image]: https://img.shields.io/travis/macacajs/java-home.svg?style=flat-square
[travis-url]: https://travis-ci.org/macacajs/java-home
[node-image]: https://img.shields.io/badge/node.js-%3E=_8-green.svg?style=flat-square
[node-url]: http://nodejs.org/download/
[download-image]: https://img.shields.io/npm/dm/java-home.svg?style=flat-square
[download-url]: https://npmjs.org/package/java-home

> detect `JAVA_HOME` path in any system

## Installment

```bash
$ npm i java-home --save
```

## Usage

```javascript
var co = require('co');

var JAVA_HOME = require('../lib/java-home');

JAVA_HOME.getPath(function(error, javaHome) {
  if (error) {
    throw error;
  }
  console.log(javaHome);
});
```

<!-- GITCONTRIBUTOR_START -->

## Contributors

|[<img src="https://avatars1.githubusercontent.com/u/1011681?v=4" width="100px;"/><br/><sub><b>xudafeng</b></sub>](https://github.com/xudafeng)<br/>|[<img src="https://avatars1.githubusercontent.com/u/1044425?v=4" width="100px;"/><br/><sub><b>ziczhu</b></sub>](https://github.com/ziczhu)<br/>
| :---: | :---: |


This project follows the git-contributor [spec](https://github.com/xudafeng/git-contributor), auto upated at `Fri May 18 2018 08:19:32 GMT+0800`.

<!-- GITCONTRIBUTOR_END -->

## License

The MIT License (MIT)
