express-generator
Advanced tools
Comparing version 4.2.0 to 4.8.0
{ | ||
"name": "express-generator", | ||
"description": "Express' application generator", | ||
"version": "4.2.0", | ||
"version": "4.8.0", | ||
"author": "TJ Holowaychuk <tj@vision-media.ca>", | ||
"contributors": [ | ||
{ | ||
"name": "TJ Holowaychuk", | ||
"email": "tj@vision-media.ca" | ||
}, | ||
{ | ||
"name": "Aaron Heckmann", | ||
"email": "aaron.heckmann+github@gmail.com" | ||
}, | ||
{ | ||
"name": "Ciaran Jessup", | ||
"email": "ciaranj@gmail.com" | ||
}, | ||
{ | ||
"name": "Guillermo Rauch", | ||
"email": "rauchg@gmail.com" | ||
} | ||
"Aaron Heckmann <aaron.heckmann+github@gmail.com>", | ||
"Ciaran Jessup <ciaranj@gmail.com>", | ||
"Guillermo Rauch <rauchg@gmail.com>", | ||
"Jonathan Ong <me@jongleberry.com>", | ||
"Roman Shtylman <shtylman+expressjs@gmail.com>" | ||
], | ||
"dependencies": { | ||
"commander": "1.3.2", | ||
"mkdirp": "0.3.5" | ||
}, | ||
"keywords": [ | ||
@@ -39,10 +24,32 @@ "express", | ||
], | ||
"repository": "git://github.com/expressjs/generator", | ||
"repository": "expressjs/generator", | ||
"license": "MIT", | ||
"dependencies": { | ||
"commander": "1.3.2", | ||
"mkdirp": "0.5.0" | ||
}, | ||
"main": "bin/express", | ||
"preferGlobal": true, | ||
"bin": { | ||
"express": "./bin/express" | ||
}, | ||
"devDependencies": { | ||
"mkdirp": "~0.3.5", | ||
"mocha": "~1.21.4", | ||
"rimraf": "~2.2.8", | ||
"should": "~4.0.4", | ||
"supertest": "~0.13.0" | ||
}, | ||
"engines": { | ||
"node": ">= 0.8.0" | ||
}, | ||
"files": [ | ||
"LICENSE", | ||
"bin/", | ||
"templates/" | ||
], | ||
"scripts": { | ||
"test": "mocha --reporter spec --bail --check-leaks test/", | ||
"test-travis": "mocha --reporter spec --bail --check-leaks test/" | ||
} | ||
} |
@@ -1,47 +0,33 @@ | ||
[![express logo](http://f.cl.ly/items/0V2S1n0K1i3y1c122g04/Screen%20Shot%202012-04-11%20at%209.59.42%20AM.png)](http://expressjs.com/) | ||
[![Express Logo](https://i.cloudup.com/zfY6lL7eFa-3000x3000.png)](http://expressjs.com/) | ||
Fast, unopinionated, minimalist web framework for [node](http://nodejs.org). | ||
[Express'](https://github.com/strongloop/express) application generator. | ||
[![Gittip](http://img.shields.io/gittip/visionmedia.png)](https://www.gittip.com/visionmedia/) | ||
[![NPM Version](https://img.shields.io/npm/v/express-generator.svg?style=flat)](https://www.npmjs.org/package/express-generator) | ||
[![NPM Downloads](https://img.shields.io/npm/dm/express-generator.svg?style=flat)](https://www.npmjs.org/package/express-generator) | ||
[![Build Status](https://img.shields.io/travis/expressjs/generator.svg?style=flat)](https://travis-ci.org/expressjs/generator) | ||
[![Gittip](https://img.shields.io/gittip/dougwilson.svg?style=flat)](https://www.gittip.com/dougwilson/) | ||
## Quick Start | ||
The quickest way to get started with express is to utilize the executable `express(1)` to generate an application as shown below: | ||
The quickest way to get started with express is to utilize the executable `express(1)` to generate an application as shown below: | ||
Create the app: | ||
Create the app: | ||
$ npm install -g express-generator | ||
$ express /tmp/foo && cd /tmp/foo | ||
```bash | ||
$ npm install -g express-generator | ||
$ express /tmp/foo && cd /tmp/foo | ||
``` | ||
Install dependencies: | ||
Install dependencies: | ||
$ npm install | ||
```bash | ||
$ npm install | ||
``` | ||
Rock and Roll | ||
Rock and Roll | ||
$ npm start | ||
```bash | ||
$ npm start | ||
``` | ||
## License | ||
(The MIT License) | ||
Copyright (c) 2009-2012 TJ Holowaychuk <tj@vision-media.ca> | ||
Permission is hereby granted, free of charge, to any person obtaining | ||
a copy of this software and associated documentation files (the | ||
'Software'), to deal in the Software without restriction, including | ||
without limitation the rights to use, copy, modify, merge, publish, | ||
distribute, sublicense, and/or sell copies of the Software, and to | ||
permit persons to whom the Software is furnished to do so, subject to | ||
the following conditions: | ||
The above copyright notice and this permission notice shall be | ||
included in all copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | ||
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY | ||
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, | ||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | ||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
### [License (MIT)](LICENSE) |
var express = require('express'); | ||
var path = require('path'); | ||
var favicon = require('static-favicon'); | ||
var favicon = require('serve-favicon'); | ||
var logger = require('morgan'); | ||
@@ -17,6 +17,7 @@ var cookieParser = require('cookie-parser'); | ||
app.use(favicon()); | ||
// uncomment after placing your favicon in /public | ||
//app.use(favicon(__dirname + '/public/favicon.ico')); | ||
app.use(logger('dev')); | ||
app.use(bodyParser.json()); | ||
app.use(bodyParser.urlencoded()); | ||
app.use(bodyParser.urlencoded({ extended: false })); | ||
app.use(cookieParser());{css} | ||
@@ -28,3 +29,3 @@ app.use(express.static(path.join(__dirname, 'public'))); | ||
/// catch 404 and forward to error handler | ||
// catch 404 and forward to error handler | ||
app.use(function(req, res, next) { | ||
@@ -36,3 +37,3 @@ var err = new Error('Not Found'); | ||
/// error handlers | ||
// error handlers | ||
@@ -39,0 +40,0 @@ // development error handler |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
14403
22
69
5
34
1
+ Addedminimist@0.0.8(transitive)
+ Addedmkdirp@0.5.0(transitive)
- Removedmkdirp@0.3.5(transitive)
Updatedmkdirp@0.5.0