Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
build-cp-gtfs
Advanced tools
Readme
Build GTFS from the Comboios de Portugal 🇵🇹 (CP, Portugese Railways) REST API using the comboios JavaScript module. Inofficial, using CP endpoints. Ask them for permission before using this module in production.
Work in progress. This software is not stable yet. See the to-do section.
npm install --save build-cp-gtfs
npm install -g build-cp-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-cp-gtfs')
generateGTFS(new Date("2019-05-01"), new Date("2018-05-31"))
.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-cp-gtfs start-date end-date directory
build-cp-gtfs 2019-05-01 2019-05-31 ~/cp-gtfs
calendar_dates
to calendar
If you found a bug or want to propose a feature, feel free to visit the issues page.
FAQs
Build GTFS for the Portugese Railways (Comboios de Portugal, CP).
The npm package build-cp-gtfs receives a total of 15 weekly downloads. As such, build-cp-gtfs popularity was classified as not popular.
We found that build-cp-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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.