
Research
SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.
可以在 PM2 和 Serverless 中使用的一款简易日志工具
在 Node.js 中,比较成熟的日志工具是 log4js,但是由于种种原因,在和 pm2 搭配使用时,log4js 打印的日志很难被 pm2 接收,需要进行很多的额外配置。loghere 就是为了解决这个问题诞生的。与 log4js 的功能完整相比,loghere 只提供了非常轻量级的功能,同时保持了和 log4js 类似的 API,使用上非常简单。
直接使用 npm 命令安装即可:
npm i loghere
const loghere = require('loghere') // 引用
const logger = loghere.getLogger() // 获取日志实例
logger.level = 'debug' // 设置日志等级
logger.debug('这是日志内容') // 打日志
包含以下日志等级:
FAQs
可以在 PM2 和 Serverless 中使用的一款简易日志工具
The npm package loghere receives a total of 5 weekly downloads. As such, loghere popularity was classified as not popular.
We found that loghere 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
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.

Company News
Socket is proud to join the OpenJS Foundation as a Silver Member, deepening our commitment to the long-term health and security of the JavaScript ecosystem.

Security News
npm now links to Socket's security analysis on every package page. Here's what you'll find when you click through.