
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
hafas-rest-api-client
Advanced tools
A client for hafas-rest-api
endpoints, e.g. for the *.transport.rest
APIs.
npm install hafas-rest-api-client
const createClient = require('hafas-rest-api-client')
const vbbClient = createClient('https://v5.vbb.transport.rest', {
// Please pass in a User-Agent header to let the providers of the API endpoint understand how you're using their API.
userAgent: 'my awesome project',
})
const res = await vbbClient.journeys('900000003201', '900000024101', {results: 1})
hafas-rest-api-client
is a client hafas-rest-api@3
APIs. Check their individual API docs for all supported parameters.
The response objects have special Symbol
fields for meta information:
const {HEADERS, SERVER_TIMING, CACHE} = require('hafas-rest-api-client')
console.log('response headers', res[HEADERS]) // Fetch API Headers object
console.log('server timing', res[SERVER_TIMING]) // value of the Server-Timing response header
console.log('server cache', res[CACHE]) // value of the X-Cache response header
If you have a question or have difficulties using hafas-rest-api-client
, please double-check your code and setup first. If you think you have found a bug or want to propose a feature, refer to the issues page.
FAQs
An API client for hafas-rest-api endpoints.
The npm package hafas-rest-api-client receives a total of 6 weekly downloads. As such, hafas-rest-api-client popularity was classified as not popular.
We found that hafas-rest-api-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.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.