
Research
/Security News
Fake imToken Chrome Extension Steals Seed Phrases via Phishing Redirects
Mixed-script homoglyphs and a lookalike domain mimic imToken’s import flow to capture mnemonics and private keys.
A date formatting library based on moment.js. By only doing date formatting it is kept really small, and by not dealing with times, it avoids having to deal with time zones. Pass in your date as a string in the form YYYY-MM-DD and get it in a nice format to display to your users.
npm install occasion
##Usage
var formatDate = require('occasion');
assert.deepEqual(formatDate('2014-06-01', 'Do MMM YYYY'), '1st Jun 2014');
assert.deepEqual(formatDate('2014-06-01', 'ddd D MMM'), 'Sun 1 Jun');
Tokens:
| Token | Output
-------------|-------|--------------------------------------- Year | YY | 70 71 ... 29 30 | YYYY | 1970 1971 ... 2029 2030 Month | M | 1 2 ... 11 12 | Mo | 1st 2nd ... 11th 12th | MM | 01 02 ... 11 12 | MMM | Jan Feb ... Nov Dec | MMMM | January February ... November December Day of Month | D | 1 2 ... 30 31 | Do | 1st 2nd ... 30th 31st | DD | 01 02 ... 30 31 Day of Week | dd | Su Mo ... Fr Sa | ddd | Sun Mon ... Fri Sat | dddd | Sunay Monday ... Friday Saturday
MIT
FAQs
A date formatting library
The npm package occasion receives a total of 160 weekly downloads. As such, occasion popularity was classified as not popular.
We found that occasion 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
Mixed-script homoglyphs and a lookalike domain mimic imToken’s import flow to capture mnemonics and private keys.

Security News
Latio’s 2026 report recognizes Socket as a Supply Chain Innovator and highlights our work in 0-day malware detection, SCA, and auto-patching.

Company News
Join Socket for live demos, rooftop happy hours, and one-on-one meetings during BSidesSF and RSA 2026 in San Francisco.