
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
super-project moudle for mysql operate.
Config More: https://github.com/mysqljs/mysql#connection-options
import spMysql from 'sp-mysql'
const config = {
host: '127.0.0.1',
port: '3306',
user: 'xxxx',
password: 'xxxx',
database: 'db_name'
}
const mysql = new spMysql(config)
let sql = 'SELECT 1 + 1 AS Test'
let [result] = await mysql.query(sql)
// result 查询结果并保护下面数据
// { affectedRows, insertId } = result
Use debug for log.
设置环境变量
set DEBUG=* # 全部信息
set DEBUG=MySQL* # MySQL相关信息,包括(info\log\errro)
set DEBUG=MySQL:info # info信息
set DEBUG=MySQL:log # log信息,执行sql
set DEBUG=MySQL:error # error错误信息
mysql.testConnect()
// console => MySQL:info DB ['db_name'] connected √
// => MySQL:info DB ['db_name'] connect failed X
FAQs
super-project moudle for mysql operate.
We found that sp-mysql 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.