npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

chinese-s2t

v1.0.0

Published

Simplfied and Traditional Chinese Converter

Downloads

1,775

Readme

chinese-s2t NPM version Build Status dependencies Status devDependencies Status

关于

简单的字符串替换的简繁体转换模块

Install

shell (node.js)

npm install chinese-s2t

Usage

var Chinese = require('chinese-s2t')
Chinese.s2t('简体转繁体');
Chinese.t2s('繁体转简体');

转换成繁体


var Chinese = require('chinese-s2t')

var s2tResult = Chinese.s2t('那一天,人类终于回想起了,曾经一度被他们所支配的恐怖,还有被囚禁于鸟笼中的那份屈辱。')

console.log(s2tResult)

//那一天,人類終於回想起了,曾經一度被他們所支配的恐怖,還有被囚禁於鳥籠中的那份屈辱。

转换成简体

var Chinese = require('chinese-s2t')

var s2tResult = Chinese.t2s('我們被教導記住思想,而不是人,因為人可能失敗,他可能會被捕,他會被殺死,被遺忘,但400年後,思想仍可改變世界,我親眼目睹了,思想的威力,我見過人們以它為名殺戮,或是為了它獻出生命,但你不能親吻思想,也不能觸摸它,或擁抱它,思想不會流血,不會感到痛苦,它們沒有愛!')

console.log(s2tResult)

//我们被教导记住思想,而不是人,因为人可能失败,他可能会被捕,他会被杀死,被遗忘,但400年后,思想仍可改变世界,我亲眼目睹了,思想的威力,我见过人们以它为名杀戮,或是为了它献出生命,但你不能亲吻思想,也不能触摸它,或拥抱它,思想不会流血,不会感到痛苦,它们没有爱!