
Security News
CVE Volume Surges Past 48,000 in 2025 as WordPress Plugin Ecosystem Drives Growth
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.
rich-message
Advanced tools
Turn a plain message into a rich HTML message
npm install rich-message
var richMessage = require('rich-message')
var basicMessage = {
text: 'hi maxogden', // text entered by a user
username: 'mafintosh', // github username
timestamp: Date.now()
}
var username = 'maxogden' // current user's github username (used for highlighting)
var output = richMessage(basicMessage, username)
// { text: 'hi maxogden',
// username: 'mafintosh',
// timestamp: 1458939703123,
// anon: false,
// avatar: 'https://github.com/mafintosh.png',
// timeago: '2:01 PM',
// html: '<div class="highlight"><p>hi maxogden</p><p></p></div>' }
This module is currently very tightly coupled with friends (sorry). If you'd like to help make it more usable for other projects, please fork and contribute!
Contributions welcome! Please read the contributing guidelines first.
FAQs
Turn a plain message into a rich HTML message.
We found that rich-message demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 12 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.

Security News
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.

Security News
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.