A promise based implementation to access the national rail's data soap based APIs.
npm install national-rail-data
In order to use this library you will first need to obtain a National Rail Data Portal account. The credentials are used to initialise this library:
const RailData =let railData =
You can then use library to retrieve the station information as follows:
let stations = await railData