0.0.1 • Published 9 years ago

koa-package-version v0.0.1

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

koa-package-version

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

Usage

Install via npm:

$ npm install --save koa-package-version

Include in the app:

app.use(require('koa-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