Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
build-mav-gtfs
Advanced tools
Build GTFS for the Hungarian State Railways (Magyar Államvasutak, MÁV).
Build GTFS from the Magyar Államvasutak (MÁV, Hungarian State Railways) REST API using the mav JS module. Please ask MÁV for permission before using this module in production.
Please note that the data basis used by the MÁV API allows GTFS data to be generated only 25 days in advance.
Work in progress. This software is not stable yet. See the to-do section.
npm install --save build-mav-gtfs
npm install -g build-mav-gtfs
The script takes a startDate
and an endDate
JS Date()
object (the feed will include the endDate
, days will be calculated in Europe/Lisbon
timezone) and return a Promise
that will resolve in an object containing GTFS object streams:
const generateGTFS = require('build-mav-gtfs')
generateGTFS(new Date("2017-12-01T00:00:00"), new Date("2018-05-31T00:00:00"))
.then((gtfs) => {
gtfs.routes.pipe(someStream)
gtfs.stops.pipe(anotherStream)
})
The GTFS object contains the following streams:
agency
stops
routes
trips
stop_times
calendar_dates
feed_info
build-mav-gtfs start-date end-date directory
build-mav-gtfs 01.12.2017 31.05.2018 ~/cp-gtfs
calendar_dates
to calendar
@juliuste will be working on this the next few days.
If you found a bug, want to propose a feature or feel the urge to complain about your life, feel free to visit the issues page.
FAQs
Build GTFS for the Hungarian State Railways (Magyar Államvasutak, MÁV).
The npm package build-mav-gtfs receives a total of 1 weekly downloads. As such, build-mav-gtfs popularity was classified as not popular.
We found that build-mav-gtfs 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.