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.
nav-datovelger
Advanced tools
Simple datepicker basert på react-day-picker https://www.npmjs.com/package/react-day-picker
import { Datepicker, isISODateString } from 'nav-datovelger';
const BasicDatepicker = () => {
const [date, setDate] = useState('');
return (
<Datepicker onChange={setDato} value={date} />
);
};
const AdvancedDatePicker = () => {
const [date, setDate] = useState<string>('');
return (
<Datepicker
locale={'nb'}
inputId="datepicker-input"
value={date}
onChange={setDate}
inputProps={{
name: 'dateInput',
'aria-invalid': date !== '' && isISODateString(date) === false,
}}
calendarSettings={{ showWeekNumbers: true }}
showYearSelector={true}
limitations={{
weekendsNotSelectable: false,
invalidDateRanges: [{
from: '2020-04-10',
to: '2020-04-11',
}],
minDate: '2000-04-03',
maxDate: '2020-12-12',
}}
/>
);
}
Starter app med enkelt eksempel
npm run dev
FAQs
Datepicker with input and calendar
The npm package nav-datovelger receives a total of 134 weekly downloads. As such, nav-datovelger popularity was classified as not popular.
We found that nav-datovelger demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 14 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 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.