
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
bluepicker
Advanced tools
A beautiful VanillaJS date or datetime picker that also supports local or UTC input.
It is nearly impossible to find a date(time) picker that simultaneously brings:
Simply require it and use it !
<div id="picker_id">
<input type="text"></input>
</div>
import bluepicker from 'bluepicker'
import 'bluepicker/dist/bundle.css' # hashed CSS classes for the picker
bluepicker.init('picker_id')
Almost everything is configurable.
bluepicker.init('picker_id', {
callback: null, // callback upon changes
locale: 'cn', // momentJS locale
format: 'lll', // momentJS display format
mode: 'hours', // asks the day, then the hour, that's it.
utcMode: true, // displayed and sent values will be UTC
padToBoundary: false, // pad text to minutes, hours or day boundary depending on the mode.
nowButtonText: 'Now' // gives you the possibility to customize the "Now" button text.
}, initValue)
Upon changes (either by direct modification in the input field, or a click in the picker buttons) a DOM event is fired and the callback is called, if provided.
bluepicker.init('picker_id', {callback: onPickerChange})
// or
document.addEventListener('bluepicker:update', (e) => onPickerChange(e.detail))
// fires
function onPickerChange ({id, format, value, utcMode}) {
// id is the source's datepicker ID
// format is the display format of the value
// value is the momentJS instance of the moment that just changed
// utcMode keeps track if the picker is currently in UTC mode or not.
}
MIT
FAQs
Vanilla date, time and range picker
We found that bluepicker demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.