koa-package-version

0.0.1 • Public • Published

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

Package Sidebar

Install

npm i koa-package-version

Weekly Downloads

1

Version

0.0.1

License

MIT

Last publish

Collaborators

  • rjz