0.0.2 • Published 9 years ago

express-package-version v0.0.2

Weekly downloads
73
License
MIT
Repository
github
Last release
9 years ago

express-package-version

A middleware for surfacing the package.json version of express applications.

Usage

Install via npm:

$ npm install --save express-package-version

Include in the app:

app.use(require('express-package-version')({
  url    : '/package-version',
  format : 'serving @ %s'
}));

Options:

  • url (optional) - the url to serve the version from (default: /version)

  • format (optional) - a format string for wrapping the version in text / HTML responses

License

MIT