Socket
Socket
Sign inDemoInstall

hotel

Package Overview
Dependencies
Maintainers
1
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hotel - npm Package Compare versions

Comparing version 0.2.3 to 0.2.5

7

lib/actions/servers.js

@@ -37,4 +37,9 @@ 'use strict';

if (opts.o) obj.out = opts.o;
obj.env = {};
// By default, save PATH env for version managers users
obj.env.PATH = process.env.PATH;
if (opts.e && process.env[opts.e]) {
obj.env = {};
obj.env[opts.e] = process.env[opts.e];

@@ -41,0 +46,0 @@ }

2

package.json
{
"name": "hotel",
"version": "0.2.3",
"version": "0.2.5",
"description": "Easily start, stop and access your servers from the browser",

@@ -5,0 +5,0 @@ "main": "lib",

@@ -11,7 +11,7 @@ # hotel [![](https://img.shields.io/travis/typicode/hotel.svg)](https://travis-ci.org/typicode/hotel) [![](https://badge.fury.io/js/hotel.svg)](https://www.npmjs.com/package/hotel)

__Add your servers commands__ (need to be done only once, `-e` option can be omitted if you're not using a version manager like [nvm](https://github.com/creationix/nvm))
__Add your servers commands__ (need to be done only once)
```bash
~/express$ hotel add nodemon -e PATH
~/static$ hotel add 'serve -p $PORT' -e PATH
~/express$ hotel add nodemon
~/static$ hotel add 'serve -p $PORT'
```

@@ -23,3 +23,3 @@

As a shortcut, you can also directly go to `localhost:2000/<name>` to start and access a server.
As a shortcut, you can also directly go to `localhost:2000/<app-name>` to start and access a server.

@@ -38,4 +38,3 @@ Works on OS X, Linux and Windows.

hotel add nodemon -n name # Set custom name
hotel add nodemon -e PATH # Save current environment variable
# (use it with version managers)
hotel add nodemon -e ENV # Save environment variable
```

@@ -66,3 +65,3 @@

## Port variable
## PORT

@@ -82,3 +81,3 @@ For `hotel` to work, your servers need to listen on the PORT environment variable.

## Hotel files
## Files

@@ -85,0 +84,0 @@ `~/.hotel` contains daemon log, servers and daemon configurations.

{
"optOut": false,
"lastUpdateCheck": 1434380840061
"lastUpdateCheck": 1434487550814
}
{
"cwd": "/home/sonic/d/hotel/test/app",
"cwd": "/Users/sonic/d/hotel/test/app",
"cmd": "node index.js",
"out": "output.log",
"env": {
"PATH": "/home/sonic/.nvm/versions/node/v0.12.2/lib/node_modules/npm/bin/node-gyp-bin:/home/sonic/d/hotel/node_modules/.bin:/home/sonic/.nvm/versions/node/v0.12.2/lib/node_modules/npm/bin/node-gyp-bin:/home/sonic/d/hotel/node_modules/.bin:/home/sonic/.nvm/versions/node/v0.12.2/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
"PATH": "/Users/sonic/.nvm/versions/node/v0.12.0/lib/node_modules/npm/bin/node-gyp-bin:/Users/sonic/d/hotel/node_modules/.bin:/Users/sonic/.nvm/versions/node/v0.12.0/lib/node_modules/npm/bin/node-gyp-bin:/Users/sonic/d/hotel/node_modules/.bin:/Users/sonic/.rbenv/shims:/Users/sonic/.rbenv/bin:/Users/sonic/.nvm/versions/node/v0.12.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/sonic/go/bin"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc