
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@domain.js/cron
Advanced tools
npm i @domain.js/cron --save
专属配置名称 cron
名称 | 类型 | 必填 | 默认值 | 描述 | 样例 |
---|---|---|---|---|---|
tz | string | 否 | Asia/Beijing | 时区设置,在linux风格的时刻表会用到 | Europe/London |
模块名 | 别名 | 用到的方法 | 描述 |
---|---|---|---|
cia | 无 | regist , link , submit | @domain.js/cia 模块 |
const Cron = require('@domain.js/cron');
const cia = Cia(); // cia 模块初始化, 这里是伪代码
const cron = Cron({ cron: { tz: 'Asia/Beijing' } }, { cia });
// 计划任务注册 cron.regist(/* 任务名称 */, /* 时间间隔或时刻表 */, /* 第一次开始与进程启动后多久 */);
cron.regist('上厕所', '2 hours', '1 hours'); // 每个两小时上一次测试,进程启动后一个小时执行第一次
cron.regist('吃早饭', '0 20 07 * * *'); // 每天早上七点二十分吃早餐
// 注册完毕后,启动计划任务, 启动以后禁止注册
cron.start();
// 检测触发,执行对应任务, 这里利用了 cia 的能力
cia.link(`Cron::上厕所`, 'cronJob', (times) => {
// 上厕所,嘘嘘 第 ${times} 次
});
cia.link(`Cron::吃早饭`, 'cronJob', (times) => {
// 上早饭 第 ${times} 次
});
// 获取计划任务执行统计
cron.getStats();
FAQs
domain.js cron plugin
We found that @domain.js/cron 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 uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.