
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
air-datepicker
Advanced tools
Lightweight, dependency free, fast, customizable datepicker written in pure JavaScript. 
Lightweight, dependency-free, fast, customizable datepicker written in pure JavaScript. Works in all modern browsers which supports native css variables.
npm i air-datepicker
import AirDatepicker from 'air-datepicker'
import 'air-datepicker/air-datepicker.css'
new AirDatepicker('#el' [, options]);
change
event on <input />
element when user selects a date in the calendar #624onBeforeSelect
function when the {silent: false}
argument is passed #649clear
button works correctly in the range mode #642selectDate
function, thanks to marfrede in #656onRenderCell
callback, thanks to kdagnan in #657destroy()
behavior - added isDestroyed
property, opts
and selectedDates
will still have empty values, instead of null
, even after AirDatepicker has been destroyed #600fixedHeight
option, allows you to have equal weeks number in every monthdisableDate
, allows you to disabled one or multiple dates with datepicker APIdisabledDates
- it is a Set which holds all disabled dates{silent: true}
to update
and setCurrentView
methods, #583update
method - now if you pass selectedDates
then calendar will keep selected only those datesrange: true
, #568selectDate('2024-03-05')
#589clear
method, thanks to ahmetzambak in #591It is been a while since the last release, a lot of work has been done, and I'm glad to finally present a new version of Air Datepicker.
The main goal was to remove jQuery dependency, and I'm happy to announce that Air Datepicker is no longer need any dependency, hurray! :partying_face:
Now it's written in ES6, uses native css variables for easy customization, and it's all built with webpack.
Soooo, here is the full list of changes:
selectedDates
option, to be able to select dates from the startcontainer
option which allows you to place datepicker in a custom elementnavTitles
can receive a function and could render dynamicallydateFormat
now can receive a functiononSelect
and onRenderCell
callbacks are now receive a single object as an argument instead of multiple parametersselectDate
now receives second parameter with optionsonChangeMonth
, onChangeYear
, onChangeDecades
are replaced with single option onChangeViewDate
npm i
, then npm run dev:serve
.air-datepicker
Thank you! :blush:
Air Datepicker is MIT licensed.
v3.6.0
change
event on <input />
element when user selects a date in the calendar #624onBeforeSelect
function when the {silent: false}
argument is passed #649clear
button works correctly in the range mode #642selectDate
function, thanks to marfrede in #656onRenderCell
callback, thanks to kdagnan in #657FAQs
Lightweight, dependency free, fast, customizable datepicker written in pure JavaScript. 
The npm package air-datepicker receives a total of 51,162 weekly downloads. As such, air-datepicker popularity was classified as popular.
We found that air-datepicker 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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.