Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
country-live-clocks
Advanced tools
Country Live Clock is a versatile npm package designed to provide real-time timezone information for any country. By simply passing a country code, users can retrieve an array of objects detailing the current time across all the time zones within that cou
Country Live Clock is a versatile npm package designed to provide real-time timezone information for any country. By simply passing a country code, users can retrieve an array of objects detailing the current time across all the time zones within that country. This package is ideal for applications requiring accurate global time display, scheduling software that spans multiple time zones, or anyone needing a quick way to check the time in different parts of the world.
To install Country Live Clocks, run the following command in your project directory:
foo@bar:~$ npm install country-live-clocks
0 vulnerabilities
Here's a quick example to get you started:
const { getCountryLiveClock } = require('country-live-clocks');
// Replace 'US' with any country code you want to test
const countryCode = 'US';
const liveClock = getCountryLiveClock(countryCode);
console.log(liveClock);
Output
foo@bar:~$ [
{ timezone: 'America/Adak', time: '7:23 AM' },
{ timezone: 'America/Anchorage', time: '8:23 AM' },
{ timezone: 'America/Boise', time: '10:23 AM' },
{ timezone: 'America/Chicago', time: '11:23 AM' },
{ timezone: 'America/Denver', time: '10:23 AM' }
]
getCountryLiveClock(countryCode)
countryCode
- A string representing the ISO 3166-1 alpha-2 country code.Contributions are always welcome! Please read the contributing guide to learn how you can help improve Country Live Clocks.
This project is licensed under the MIT License - see the LICENSE file for details.
If you encounter any issues or have any questions, please file an issue on the GitHub issues page.
FAQs
Country Live Clock is a versatile npm package designed to provide real-time timezone information for any country. By simply passing a country code, users can retrieve an array of objects detailing the current time across all the time zones within that cou
The npm package country-live-clocks receives a total of 0 weekly downloads. As such, country-live-clocks popularity was classified as not popular.
We found that country-live-clocks demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.