
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
dayjs-timezone-iana-plugin
Advanced tools
DayJS timezone plugin alternative to manage DST correctly
DayJS timezone plugin alternative to manage DST correctly, using https://www.iana.org/time-zones
npm i dayjs-timezone-iana-plugin
In the code:
// -> remove dayjs.extend(timezone)
dayjs.extend(utc)
dayjs.extend(require('dayjs-timezone-iana-plugin'))
dayjs('2014-06-01 12:00').tz('America/New_York')
// You can set a default timezone
dayjsFactory.tz.setDefault('America/New_York')
The code is quite simple and is largely inspired by moment-timezone.
It includes the latest database IANA 2021e (96KB compressed). It takes more space than the method used by DayJS or Luxon. But it works even if NodeJS is compiled with small-icu.
latest.json
https://github.com/moment/moment-timezone/blob/develop/data/unpacked/latest.jsonnpm run optimize
0.2.0
0.1.0
Maintained by https://carbone.io/ and https://www.easilys.com/
FAQs
DayJS timezone plugin alternative to manage DST correctly
The npm package dayjs-timezone-iana-plugin receives a total of 14,137 weekly downloads. As such, dayjs-timezone-iana-plugin popularity was classified as popular.
We found that dayjs-timezone-iana-plugin demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.