Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
github.com/usysrc/timezone
Is a Go-based command-line interface (CLI) app that allows users to fetch and display the current time in a specified city using its timezone.
Needs golang 1.18+ installed.
To use the timezone CLI, you need to have Go installed on your system. If you haven't installed Go, you can download it from the official Go website: https://golang.org/dl/
Once you have Go installed, you can install the Timezone CLI using the following command:
go install github.com/usysrc/timezone@latest
To use the timezone CLI, you need to provide a city name as an argument. The CLI will then fetch the current time in that city and display it in the specified 24-hour format.
Here's the basic usage of the timezone CLI:
timezone [city]
Let's see an example of how to use the timezone CLI. Suppose you want to know the current time in New York:
timezone America/New_York
Output:
Current time in New York: 15:30
In this example, the timezone CLI fetched the current time in New York and displayed it in the 24-hour format.
You can also specify a custom time format using the --format flag. For example, to get the time in 12-hour format with AM/PM:
timezone --format "03:04 PM" London
Output
Current time in London: 03:30 PM
This project is licensed under the MIT License. See the LICENSE file for details.
FAQs
Unknown package
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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.