Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
gbfs-client
Advanced tools
General Bikeshare Feed Specification (GBFS) client, compatible with Citibike NYC API
Lightweight client for General Bikeshare Feed Specification (GBFS) feeds, with a Promise-based API and full type definitions (Typescript).
Compatible with the CitiBike NYC API.
npm install gbfs-client --save
const GbfsClient = require('gbfs-client');
const gbfsClient = new GbfsClient('https://gbfs.citibikenyc.com/gbfs/en/');
gbfsClient.system()
.then(system => console.log(system));
/* { system_id: 'NYC',
language: 'en',
name: 'Citi Bike',
... */
gbfsClient.stationInfo()
.then(stations => console.log(stations));
/* [ { station_id: '72',
name: 'W 52 St & 11 Ave',
short_name: '6926.01',
lat: 40.76727216,
lon: -73.99392888,
...
] */
gbfsClient.stationInfo('72')
.then(stationInfo => console.log(stationInfo));
/* { station_id: '72',
name: 'W 52 St & 11 Ave',
short_name: '6926.01',
lat: 40.76727216,
lon: -73.99392888,
... */
gbfsClient.stationStatus('72')
.then(stationStatus => console.log(stationStatus));
/* { station_id: '72',
num_bikes_available: 12,
num_docks_available: 26,
... */
baseUrl
: optional url for the GBFS API. Defaults to 'https://gbfs.citibikenyc.com/gbfs/en/'
, for NYC's CitiBike.stationId
: optional id for a specific station. If this parameter is not provided, an array of info for all stations will be returned.stationId
: optional id for a specific station. If this parameter is not provided, an array of status for all stations will be returned.FAQs
General Bikeshare Feed Specification (GBFS) client, compatible with Citibike NYC API
We found that gbfs-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.