npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript.Learn more »

national-rail-data

1.0.1 • Public • Published

national-rail-data

Standard - JavaScript Style Guide CircleCI

Introduction

A promise based implementation to access the national rail's data soap based APIs.

Installation

npm install national-rail-data

Usage

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 = require('national-rail-data')
let railData = RailData('username', 'password')

You can then use library to retrieve the station information as follows:

let stations = await railData.getStations()

install

npm i national-rail-data

Downloadsweekly downloads

2

version

1.0.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability