
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
generate-timezone-json
Advanced tools
Generate JSON file containing timezones from a tab file or the official IANA database
Generate a JSON file containing time zones from the official IANA Database or your own zone.tab
file 🚀
npx generate-timezone-json
Use case: This script is specifically useful when you need a JSON file with timezones information. Maybe you need this information to be synced with your server which uses a tab file (i.e., tab-separated values). Or maybe you just need a static persistent file generated from the latest official time zones database. In these cases, this script is what you need. For other use cases, see "Other Options" section below.
Please report issues found or suggestions in the project issues page
Recommendation: For performance, I recommend you don't generate the JSON file multiple times in run time. Determine a single point in your app/system's life cycle when it is best to do this (e.g., pre-build time or once when requested for the first time).
Requirement: This is a lightweight node.js script, and only requires that you have node installed.
Running the following will automatically download and cache the latest version, so there is no need to permanently install anything.
npx generate-timezone-json
to generate timezones.json from official IANA Databasenpx generate-timezone-json <filename>
to generate timezones.json from a TAB file,
generate-timezone-json zone.tab
Important Note: Currently, the structure of the generated JSON file will be different depending on the source (i.e, zone.tab or the IANA time zones database). This will be addressed in this github issue.
If you have a need to permanently install the package do the following:
npm i generate-timezone-json
npm i -g generate-timezone-json
After installation, you can use npx generate-timezone-json
.
You can also download the latest releases in Github. After downloading, extract the package, and run the unpacked JS script it with node: node index.js
.
This package is specifically useful if you need a JSON file with time zones information. I did not find anything like it but it uses a couple of other packages under the hood. The following may be more appropriate for you:
--output
Please report issues found or suggestions in the project issues page
FAQs
Generate JSON file containing timezones from a tab file or the official IANA database
The npm package generate-timezone-json receives a total of 1 weekly downloads. As such, generate-timezone-json popularity was classified as not popular.
We found that generate-timezone-json demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.