
Security News
RubyGems Adds Cooldown Feature to Bundler for Newly Published Gems
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.
通过 node:os 的 homedir 获取当前用户的主目录。但受到用户的环境变量和系统配置的影响,该值返回可能非预期值。
qqi 与名下 check version 校验 npm 版本是否重复且返回发布的 dist tag、copy text node 环境复制到剪切板、dev log 在开始时打印、rollup external 一个使用 rollup 打包为 npm 库排除依赖、table 一个在终端或是浏览器控制台打印彩色文本强大表格的工具 没有直接的关系
npm install --save qqi
import { QQI } from 'qqi';
/**
*
* 创建用户目录下的 `~/.earthnut.dev.data/test/` 的读写机
*
* 若没有找到用户目录或是没有写入的权限,则不可用。 `qqi.available` 值将为 `false`
*
* 在不可用时,直接拦截读写。读将直接返回 `null`,写直接返回 `false`
*
*/
const qqi = new QQI('test');
/**
*
* 读取 `~/.earthnut.dev.data/test/test` 文件,返回的是 JSON 格式
*
* 如若数据无法被 `JSON.stringify`、`JSON.parse` 则报错
*/
const content = qqi.read<{ test: string }>('test');
import { QQI } from 'qqi';
// 同上
const qqi = new QQI('test');
// 将向文件 `~/.earthnut.dev.data/test/test` 写入内容 `{"a":10}`
qqi.write('test', { a: 10 });
import { QQI } from 'qqi';
// 同上
const qqi = new QQI('test');
// 返回 `~/.earthnut.dev.data/test/test`
console.log(qqi.getPath('test'));
FAQs
The npm package qqi receives a total of 33 weekly downloads. As such, qqi popularity was classified as not popular.
We found that qqi demonstrated a healthy version release cadence and project activity because the last version was released less than 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.

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.

Security News
Federal audit finds NIST lacked a plan to clear the NVD backlog, wasted funds on duplicate work, and delayed use of CISA data.