express-boot
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -25,3 +25,3 @@ /*jslint node: true, forin: true, jslint white: true, newcap: true*/ | ||
_opt = _defaults, | ||
_version = '0.0.1', | ||
_version = '0.0.2', | ||
_ = require('lodash'), | ||
@@ -28,0 +28,0 @@ cout = require('cout'), |
@@ -6,2 +6,6 @@ Changelog | ||
* Initial Commit | ||
* Initial Commit | ||
**0.0.2** | ||
* Updated readme |
{ | ||
"name": "express-boot", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "A simple Express middleware to start and stop the server.", | ||
@@ -5,0 +5,0 @@ "main": "boot.js", |
@@ -7,3 +7,7 @@ express-boot | ||
[![Build Status](https://travis-ci.org/iwatakeshi/express-boot.svg)](https://travis-ci.org/iwatakeshi/express-boot) | ||
[![npm version](https://badge.fury.io/js/express-boot.svg)](http://badge.fury.io/js/express-boot) | ||
[![NPM](https://nodei.co/npm/express-boot.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/express-boot/) | ||
##Install | ||
@@ -18,4 +22,5 @@ | ||
```js | ||
var app = require('express')(); | ||
var boot = require('express-boot')(app, process.env.PORT || 3000); | ||
var boot = require('express-boot'); | ||
@@ -26,3 +31,3 @@ /*...*/ | ||
if(require.main === module){ | ||
boot().start(); | ||
boot(app, process.env.PORT|| 3000).start(); | ||
} else { | ||
@@ -90,1 +95,12 @@ //In case you want to use app in your tests. | ||
##Changelog | ||
**Latest:** | ||
**0.0.1** | ||
* Initial Commit | ||
**0.0.2** | ||
* Updated readme |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26722767
102