
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@windrun-huaiin/lib
Advanced tools
通用工具库,包含配置、工具函数、图标和 LLM 相关功能。
pnpm add @windrun-huaiin/lib
import { appConfig, iconColor, getValidLocale } from '@windrun-huaiin/lib/config';
// 使用应用配置
console.log(appConfig.baseUrl);
// 获取有效的语言设置
const locale = getValidLocale('zh');
import { cn, formatTimestamp } from '@windrun-huaiin/lib/utils';
// 合并 CSS 类名
const className = cn('text-red-500', 'font-bold');
// 格式化时间戳
const formatted = formatTimestamp('1640995200000', 'yyyy-MM-dd HH:mm:ss');
import { Search, Check, X } from '@windrun-huaiin/lib/icons';
// 在 React 组件中使用
function MyComponent() {
return (
<div>
<Search className="w-4 h-4" />
<Check className="w-4 h-4 text-green-500" />
<X className="w-4 h-4 text-red-500" />
</div>
);
}
import { getLLMText } from '@windrun-huaiin/lib/llm';
// 处理 MDX 内容
const result = await getLLMText(mdxContent, 'Title', 'Description');
# 开发模式
pnpm dev
# 构建
pnpm build
# 类型检查
pnpm typecheck
pnpm publish
FAQs
Common utilities and configuration
The npm package @windrun-huaiin/lib receives a total of 7 weekly downloads. As such, @windrun-huaiin/lib popularity was classified as not popular.
We found that @windrun-huaiin/lib demonstrated a healthy version release cadence and project activity because the last version was released less than 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
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.