Pretender is a mock server library for XMLHttpRequest and Fetch, that comes with an express/sinatra style syntax for defining routes and their handlers.
This module will return the current project version string. The version string is made of the last git tag or package.json version (if no git tag exists) and the last commit hash.