stations-lib is an npm library that can be used to get the station code of a given train station. The search algorithm uses fuzzy search.
An example of its usage can be found here.
To use it, simply run
npm install stations-libDevelopment
To install dependencies:bun installTo run:
bun run index.tsThis project was created using bun init in bun v1.2.15. Bun is a fast all-in-one JavaScript runtime.