
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
@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 9 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.

Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.

Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.

Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.