version-route

Expose the package.json version and git info as a hapi route

Usage no npm install needed!

<script type="module">
  import versionRoute from 'https://cdn.skypack.dev/version-route';
</script>

README

version-route

Expose the package.json version and git info as a hapi route

npm install version-route

Usage

var version = require('version-route')(__dirname)

server.route(version);

then you can get the version info of the app on path /v, eg


curl http://localhost:493/v

License

MIT