Comparing version 0.0.3 to 0.0.4
@@ -6,3 +6,4 @@ #!/usr/bin/env node | ||
// some platforms create a copy of the binary file instead of a symlink | ||
const frameworkFolder = path.join(__dirname, '../nightframe').replace('node_modules/nightframe/nightframe', 'node_modules/nightframe'); | ||
const frameworkFolder = path.join(__dirname, '../nightframe') | ||
.replace('node_modules/nightframe/nightframe', 'node_modules/nightframe'); | ||
@@ -9,0 +10,0 @@ const requiredVersion = require(path.join(frameworkFolder, 'package.json')).engines.node; |
@@ -157,2 +157,3 @@ const path = require('path'); | ||
const consoleEnabled = logging.console.enable || logging.console.enabled || logging.console === true; | ||
const logRequests = consoleEnabled && logging.console.requests; | ||
@@ -169,3 +170,3 @@ if (fileEnabled === true || logging.console.requests) { | ||
if (consoleEnabled) { | ||
if (consoleEnabled && logRequests) { | ||
morgan.format('nightframe', function(tokens, req, res) { | ||
@@ -172,0 +173,0 @@ const status = res.headersSent ? res.statusCode : undefined; |
{ | ||
"name": "nightframe", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "A small Node.js web application framework built on top of Express", | ||
@@ -5,0 +5,0 @@ "author": { |
# Nightframe | ||
A small web application framework built on top of [Express.js](https://expressjs.com/) to provide a minimal MVC-style structure to a Node.js app or web service. | ||
[![npm](https://img.shields.io/npm/v/nightframe.svg)](https://www.npmjs.com/package/nightframe) | ||
[![Build Status](https://travis-ci.org/pineviewlabs/nightframe.svg?branch=master)](https://travis-ci.com/pineviewlabs/nightframe) | ||
[![Twitter Follow](https://img.shields.io/twitter/follow/pineviewlabs.svg?style=social)](https://twitter.com/pineviewlabs) | ||
*** | ||
46952
1432
13