Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
noamokman committed Jun 23, 2015
1 parent 2a63e3b commit d1249ae
Showing 1 changed file with 56 additions and 8 deletions.
64 changes: 56 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# nachos-home
# nachos-home

[![Join the chat at https://gitter.im/nachos/nachos-home](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/nachos/nachos-home?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
Get the path to the nachos home directory

<table>
Expand All @@ -11,26 +10,75 @@ Get the path to the nachos home directory
<th>Windows</th>
<th>Coverage</th>
<th>Dependencies</th>
<th>Dev-Dependencies</th>
<th>DevDependencies</th>
</tr>
</thead>
<tbody>
<tr>
<td colspan="2" align="center">
<a href="https://travis-ci.org/nachos/nachos-home"><img src="https://travis-ci.org/nachos/nachos-home.svg"></a>
<a href="https://travis-ci.org/nachos/nachos-home"><img src="https://img.shields.io/travis/nachos/nachos-home.svg?style=flat-square"></a>
</td>
<td align="center">
<a href="https://ci.appveyor.com/project/noamokman/nachos-home"><img src="https://ci.appveyor.com/api/projects/status/jgmv39855es9ovbl?svg=true"></a>
<a href="https://ci.appveyor.com/project/noamokman/nachos-home"><img src="https://img.shields.io/appveyor/ci/noamokman/nachos-home.svg?style=flat-square"></a>
</td>
<td align="center">
<a href="https://coveralls.io/r/nachos/nachos-home"><img src="https://coveralls.io/repos/nachos/nachos-home/badge.svg" alt="Coverage Status"></a>
<a href='https://coveralls.io/r/nachos/nachos-home'><img src='https://img.shields.io/coveralls/nachos/nachos-home.svg?style=flat-square' alt='Coverage Status' /></a>
</td>
<td align="center">
<a href="https://david-dm.org/nachos/nachos-home"><img src="https://david-dm.org/nachos/nachos-home.svg"></a>
<a href="https://david-dm.org/nachos/nachos-home"><img src="https://img.shields.io/david/nachos/nachos-home.svg?style=flat-square"></a>
</td>
<td align="center">
<a href="https://david-dm.org/nachos/nachos-home#info=devDependencies"><img src="https://david-dm.org/nachos/nachos-home/dev-status.svg"/></a>
<a href="https://david-dm.org/nachos/nachos-home#info=devDependencies"><img src="https://img.shields.io/david/dev/nachos/nachos-home.svg?style=flat-square"/></a>
</td>
</tr>
</tbody>
</table>

## Have a problem? Come chat with us!
[![Join the chat at https://gitter.im/nachos/nachos-home](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/nachos/nachos-home?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

## Installation
``` bash
$ [sudo] npm install nachos-home -g
```

**Note:** If you are using nachos home _programmatically_

``` bash
$ cd /path/to/your/project
$ [sudo] npm install nachos-home --save
```

## Examples
### From a command line
Print nachos home folder
``` bash
$ nachos-home print
/user/home/.nachos
```

Supports inner path parameter
``` bash
$ nachos-home print foo/bar
/user/home/.nachos/foo/bar
```

### From code
Getting nachos home folder
``` js
var nachosHome = require('nachos-home');

console.log(nachosHome()); // -> /user/home/.nachos
console.log(nachosHome('foo')); // -> /user/home/.nachos/foo
console.log(nachosHome('foo', 'bar')); // -> /user/home/.nachos/foo/bar
console.log(nachosHome(['foo', ['bar', ...]])); // -> /user/home/.nachos/foo/bar/...
```

## Run Tests
``` bash
$ npm test
```

## License

[MIT](LICENSE)

0 comments on commit d1249ae

Please sign in to comment.