express-api-common
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -1,1 +0,62 @@ | ||
{"name":"express-api-common","version":"3.0.0","description":"an api to receive and ingest product exports","scripts":{"commit":"git-cz","build":"babel src -d dist","lint":"eslint src __tests__","lint:fix":"eslint --fix src __tests__","test":"jest --config jest.json --coverage --verbose","test:watch":"jest --config jest.json --watch --coverage --verbose","precommit":"npm run lint:fix && npm run test","prepublish":"npm run build","semantic-release":"semantic-release pre && npm publish && semantic-release post"},"main":"dist/server.js","files":["dist"],"repository":{"type":"git","url":"https://github.com/patrickleet/express-api-common.git"},"dependencies":{"body-parser":"^1.18.2","debug":"^3.1.0","express":"^4.16.2","express-prom-bundle":"^3.3.0","healthcheck-middleware":"^1.0.1"},"devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.26.0","babel-eslint":"^8.2.2","babel-jest":"^22.4.0","babel-plugin-module-resolver":"^3.1.0","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-preset-env":"^1.6.1","babel-register":"^6.26.0","commitizen":"^2.9.6","cz-conventional-changelog":"^2.1.0","eslint":"^4.18.1","eslint-config-standard":"^11.0.0","eslint-plugin-import":"^2.8.0","eslint-plugin-node":"^6.0.0","eslint-plugin-promise":"^3.6.0","eslint-plugin-standard":"^3.0.1","husky":"^0.14.3","jest":"^22.4.0","llog":"0.0.13","regenerator-runtime":"^0.11.1","semantic-release":"^8.2.3"},"license":"ISC","config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}}} | ||
{ | ||
"name": "express-api-common", | ||
"version": "3.0.1", | ||
"description": "an api to receive and ingest product exports", | ||
"scripts": { | ||
"commit": "git-cz", | ||
"build": "babel src -d dist", | ||
"lint": "eslint src __tests__", | ||
"lint:fix": "eslint --fix src __tests__", | ||
"test": "jest --config jest.json --coverage --verbose", | ||
"test:watch": "jest --config jest.json --watch --coverage --verbose", | ||
"precommit": "npm run lint:fix && npm run test", | ||
"prepublish": "npm run build", | ||
"semantic-release": "semantic-release", | ||
"travis-deploy-once": "travis-deploy-once" | ||
}, | ||
"main": "dist/server.js", | ||
"files": [ | ||
"dist" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/patrickleet/express-api-common.git" | ||
}, | ||
"dependencies": { | ||
"body-parser": "^1.18.2", | ||
"debug": "^3.1.0", | ||
"express": "^4.16.2", | ||
"express-prom-bundle": "^3.3.0", | ||
"healthcheck-middleware": "^1.0.1" | ||
}, | ||
"devDependencies": { | ||
"babel-cli": "^6.26.0", | ||
"babel-core": "^6.26.0", | ||
"babel-eslint": "^8.2.2", | ||
"babel-jest": "^22.4.0", | ||
"babel-plugin-module-resolver": "^3.1.0", | ||
"babel-plugin-transform-object-rest-spread": "^6.26.0", | ||
"babel-preset-env": "^1.6.1", | ||
"babel-register": "^6.26.0", | ||
"commitizen": "^2.9.6", | ||
"cz-conventional-changelog": "^2.1.0", | ||
"eslint": "^4.18.1", | ||
"eslint-config-standard": "^11.0.0", | ||
"eslint-plugin-import": "^2.8.0", | ||
"eslint-plugin-node": "^6.0.0", | ||
"eslint-plugin-promise": "^3.6.0", | ||
"eslint-plugin-standard": "^3.0.1", | ||
"husky": "^0.14.3", | ||
"jest": "^22.4.0", | ||
"llog": "0.0.16", | ||
"regenerator-runtime": "^0.11.1", | ||
"semantic-release": "^15.0.3", | ||
"travis-deploy-once": "^4.4.1" | ||
}, | ||
"license": "ISC", | ||
"config": { | ||
"commitizen": { | ||
"path": "./node_modules/cz-conventional-changelog" | ||
} | ||
} | ||
} |
@@ -1,1 +0,22 @@ | ||
express api configured with commonly used middleware | ||
# express-api-common | ||
[![Build Status](https://travis-ci.org/patrickleet/express-api-common.svg?branch=master)](https://travis-ci.org/patrickleet/express-api-common) | ||
[![codecov](https://codecov.io/gh/patrickleet/express-api-common/branch/master/graph/badge.svg)](https://codecov.io/gh/patrickleet/express-api-common) | ||
[![Greenkeeper badge](https://badges.greenkeeper.io/patrickleet/express-api-common.svg)](https://greenkeeper.io/) | ||
express api configured with commonly used middleware | ||
## Usage | ||
``` | ||
import log from 'llog' | ||
import makeServer from 'express-api-common' | ||
const options = { | ||
logger: log | ||
} | ||
const server = makeServer(options) | ||
server.use('/', () => { | ||
//... | ||
}) | ||
server.start(PORT, onServerListen) | ||
``` |
7025
22
22