Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mvila/better-hostname

Export the machine hostname or 'browser' when used with Browserify
https://github.com/mvila/better-hostname

Last synced: about 1 month ago
JSON representation

Export the machine hostname or 'browser' when used with Browserify

Awesome Lists containing this project

README

        

# better-hostname [![Build Status](https://travis-ci.org/mvila/better-hostname.svg?branch=master)](https://travis-ci.org/mvila/better-hostname)

Export the machine hostname or `'browser'` when used with [Browserify](http://browserify.org/).

## Installation

```
npm install --save better-hostname
```

## Usage

```javascript
var hostname = require('better-hostname');

console.log(hostname);
```

In case you use [Browserify](http://browserify.org/), this module exports the `'browser'` string.

## License

MIT