Skip to main content
Home

Built and signed on GitHub Actions

中文繁简体转换, 内置字库,零依赖,支持任何运行时。

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
100%
Published
2 weeks ago (2.3.0)
function toSimplified
toSimplified(
text: string,
enhance?: boolean,
): string

繁体转换为简体

Parameters

text: string
  • 繁体文本
optional
enhance: boolean = false
  • 使用启用 短语库增强,提高准确性

Return Type

简体文本

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@raise/han-convert

Import symbol

import { toSimplified } from "@raise/han-convert";
or

Import directly with a jsr specifier

import { toSimplified } from "jsr:@raise/han-convert";

Add Package

pnpm i jsr:@raise/han-convert
or (using pnpm 10.8 or older)
pnpm dlx jsr add @raise/han-convert

Import symbol

import { toSimplified } from "@raise/han-convert";

Add Package

yarn add jsr:@raise/han-convert
or (using Yarn 4.8 or older)
yarn dlx jsr add @raise/han-convert

Import symbol

import { toSimplified } from "@raise/han-convert";

Add Package

vlt install jsr:@raise/han-convert

Import symbol

import { toSimplified } from "@raise/han-convert";

Add Package

npx jsr add @raise/han-convert

Import symbol

import { toSimplified } from "@raise/han-convert";

Add Package

bunx jsr add @raise/han-convert

Import symbol

import { toSimplified } from "@raise/han-convert";