New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

w-opencc

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

w-opencc

A tool for opencc.

latest
Source
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

w-opencc

A tool for opencc.

language npm version license npm download npm download jsdelivr download

Documentation

To view documentation or get support, visit docs.

Core

w-opencc is based on the opencc in python, and only run in Windows.

Installation

Using npm(ES6 module):

npm i w-opencc

Example:

Link: [dev source code]

import WOpencc from './src/WOpencc.mjs'
//import WOpencc from 'w-opencc/src/WOpencc.mjs'
//import WOpencc from 'w-opencc'

async function test() {

    let sinp = `OpenCC是中文简繁转换开源项目,支持词汇级别的转换、异体字转换和地区习惯用词转换(中国大陆、台湾、香港、日本新字体)。不提供普通话与粤语的转换。`
    let opt = {}

    let r = await WOpencc(sinp, opt)
    console.log(r)
    // => OpenCC是中文簡繁轉換開源項目,支持詞彙級別的轉換、異體字轉換和地區習慣用詞轉換(中國大陸、臺灣、香港、日本新字體)。不提供普通話與粵語的轉換。

}
test()
    .catch((err) => {
        console.log('catch', err)
    })

Keywords

package

FAQs

Package last updated on 07 Jul 2025

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