New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

simplecc-wasm

Package Overview
Dependencies
Maintainers
0
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simplecc-wasm

Simple OpenCC alternative with wasm

  • 1.1.0
  • rc
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

simplecc-wasm

基于 simplecc-rs 的 opencc 简单替代

编译成 WASM 摆脱编译 Node Addon 的烦恼

npm i simplecc-wasm

Usage

// Node.js
import { simplecc } from "simplecc-wasm";
// const { simplecc } = require("simplecc"); // commonjs
simplecc("发财了去植发", "s2t"); // '發財了去植髮'

// web
import init, { simplecc } from "simplecc-wasm";
await init();
simplecc("发财了去植发", "s2t"); // '發財了去植髮'
// There is a react app in demo/web path

配置 Configurations

Opencc 配置中的一部分

"s2t"
"t2s"
"s2tw"
"s2hk"
"s2twp"
"hk2s"

Keywords

FAQs

Package last updated on 14 Oct 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc