New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

infotbm-client

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

infotbm-client

InfoTBM client api

  • 0.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
increased by300%
Maintainers
1
Weekly downloads
 
Created
Source

InfoTBM-Client

Promsise-based NodeJS Client for Bordeaux's public transports API (https://infotbm.com)

Install

npm i infotbm-client

Exemple usages

const TBMClient = require("infotbm-client").TBMClient;

try {

	//List all lines
	await TBMClient.listLines();

	//Search for a line, bus stop, tram stop, etc...
	await TBMClient.search("Quinconces", {type: "line", mode: "Bus"});

	//Get details about a stop area
	await TBMClient.stopArea("stop_area:TBT:SA:FRROBI");

	//Get details about a specific line
	await TBMClient.getLine("line:TBC:01");

	//Get next passes for a specific stop area (/!\ using it's code) and line
	await TBMClient.nextPass(7333, "A");

	//Get n trafic alerts (defaults to 5)
	await TBMClient.alerts(6);

} catch (err) {
	console.error(err);
}

FAQs

Package last updated on 15 Aug 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc