1.0.4 • Published 2 years ago

railcartables v1.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

RailcarTables for Node.js

install sizenpmAPI Status

The RailcarTables Node library provides convenient access to the RailcarTables API from applications written in server-side JavaScript.

Requirements

Node 8, 10 or higher.

Installation

Install the package with:

npm install railcartables --save
# or
yarn add railcartables

Usage

The package needs to be configured with your account's API key, which is available in the RailcarTables Dashboard.

Using async/await:

import RailcarTables from "railcartables";

(async () => {
	const RCT = new RailcarTables("YOUR_API_KEY", 1);
	const gaugeOutage = await RCT.getOutage({
		reportingMark: "TILX",
		carNumber: "350123",
		levelInInches: 85
	});

	console.log(gaugeOutage);
})();
1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago