
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.
@tslsmart/convert-dayjs
Advanced tools
二次封装dayjs,当地时间与东八区时间互相转换
pnpm add @tslsmart/convert-dayjs
所有方法返回对象均为dayjs
对象,所以可以调用dayjs
的所有方法。
转换东八区时间为当地时间。
import {convertToLocal} from "@tslsmart/convert-dayjs";
// 服务端返回时间为东八区时间,转换后变为当地时间
console.log(convertToLocal('2023-10-10').format())
// 可以将返回的dayjs对象重新转为东八区时间
console.log(convertToLocal('2023-10-10').server().format())
转换当地时间为东八区时间(服务端时间)
import {convertToServer} from "@tslsmart/convert-dayjs";
// 转换当地时间为东八区时间
console.log(convertToServer(new Date()).format())
// 重新转换为当地时间,local() 为 dayjs 的方法
console.log(convertToServer(new Date()).local().format())
FAQs
二次封装dayjs,当地时间与东八区时间互相转换
We found that @tslsmart/convert-dayjs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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.
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.