
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
@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
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 Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.