WSDOT Traveler Information API Client
JavaScript client library for WSDOT Traveler Information API.
- Supports Node and browser environments.
- Written in TypeScript.
Browser needs proxy
Since the WSDOT Traveler Information API does not currently support CORS, a proxy must be used in a browser environment.
Development Environment
Visual Studio Code
Testing
This project uses Jasmine for testing in Node.js environment and Karma for testing in browser environment. To run both tests, run npm test
.
Karma test runs on PhantomJS with the web-security
option turned off to work around CORS issue. This allows the tests to pass without using a proxy.
Continuous Integration testing performed on Git push via Travis-CI.
Usage
Install from NPM
npm install wsdot-traveler-info --save
See the JavaScript and TypeScript files in the spec
folder for usage examples.