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.
react-timezone
Advanced tools
Timezone Picker for React
$ npm install react-timezone
This a controlled element. value
and onChange
needs to be set. Values are timezone codenames.
You can style the container element with className
and style
props.
Passing an object as inputProps
prop will pass it to the underlying input. It can be used for setting name
, placeholder
on input or listening to input events.
Minimal styles are included with the build.
Timezones are included in the bundle and can be accessed by importing timezones
from the package.
A zone object's structure is like this:
{
name: string,
label: string,
offset: number,
}
Timezones are stolenborrowed from Google Calendar.
import TimezonePicker from 'react-timezone';
export default () => (
<TimezonePicker
value="Asia/Yerevan"
onChange={timezone => console.log('New Timezone Selected:', timezone)}
inputProps={{
placeholder: 'Select Timezone...',
name: 'timezone',
}}
/>
);
FAQs
React timezone picker
The npm package react-timezone receives a total of 3,120 weekly downloads. As such, react-timezone popularity was classified as popular.
We found that react-timezone 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.
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.