
Research
Shai-Hulud Descends to Hades: Miasma Worm Campaign Spreads with New PyPI Wave
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.
中国70多个城市的aqi(空气污染指数)数据以及天气数据。
关于PM2.5数据:
国内监测站数据来自pm25.in。
美国使领馆数据有两个来源可选
2.twitter
目前只有北京,广州,上海,成都有美国使领馆数据。如果使用twitter作为数据源,需要有特殊设定。参考下面的usage部分。
返回的数据中,各字段含义参考API文档。
关于天气数据:
数据来自中国天气
npm install chineseaqi
如果使用twitter作为美使领馆数据的数据源,需要在config.js文件中指定twitter app的相关信息:
cp config.sample.js
示例代码:
var AqiApi = require('chineseaqi');
var token = 'YOUR_TOKEN'; // pm25.in上申请的appkey
var api = new AqiApi(token);
// 获取北京的pm2.5数据
api.getAvgPm25ForCity({
city: 'beijing',
callback: function(data) { // success callback
console.log(data);
},
errorCallback: function(data) { // error callback
}
});
// 获取北京市美国大使馆的pm2.5数据
api.getLatestUsemPm25ForCity({
city: 'beijing',
method: 'twitter',// or 'rss' or nothing
callback: function(data) {
console.log(data);
}
});
// 获取北京市天气数据
aqi.getWeatherForCity({
city: 'beijing',
level: 'week', // or 'current' or 'today'
callback: function(data) {
console.log(data.weatherinfo);
}
});
FAQs
中国70多个城市的aqi(空气污染指数)数据以及天气数据。
The npm package chineseaqi receives a total of 17 weekly downloads. As such, chineseaqi popularity was classified as not popular.
We found that chineseaqi 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
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.

Security News
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.

Security News
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.