OSRM or Graphhopper will do you fine. Just fire up the server locally and then send requests to it via wget or curl. In theory you could use the NodeJS wrapper to OSRM but I suspect wget/curl will be easier.