Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/mvila/better-hostname
- Owner: mvila
- Created: 2015-10-23T06:38:27.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-09-12T09:51:01.000Z (about 8 years ago)
- Last Synced: 2024-10-03T10:34:36.436Z (about 2 months ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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