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

pinyin.js

v2.0.0

Published

pinyin.js

Downloads

15

Readme

pinyin.js npm

pinyin.js

Installation

$ npm install pinyin.js

Example

~$ npm run example
春
chūn

-- 朱自清
zhū zì qīng




盼望着,盼望着,东风来了,春天脚步近了。
pàn wàng zhe pàn wàng zhe dōng fēng lái le chūn tiān jiǎo bù jìn le

一切都像刚睡醒的样子,欣欣然张开了眼。
yī qiè dōu xiàng gāng shuì xǐng de yàng zi xīn xīn rán zhāng kāi le yǎn

山朗润起来了,水涨起来了,太阳的脸红起来了。
shān lǎng rùn qǐ lái le shuǐ zhǎng qǐ lái le tài yáng de liǎn hóng qǐ lái le

小草偷偷地从土里钻出来,嫩嫩的,绿绿的。
xiǎo cǎo tōu tōu de cóng tǔ lǐ zuān chū lái nèn nèn de lǜ lǜ de

园子里,田野里,瞧去一大片一大片满是的。
yuán zi lǐ tián yě lǐ qiáo qù yī dà piàn yī dà piàn mǎn shì de

坐着,躺着,打两个滚,踢几脚球,赛几趟跑,捉几回迷藏。
zuò zhe tǎng zhe dǎ liǎng gè gǔn tī jǐ jiǎo qiú sài jǐ tàng pǎo zhuō jǐ huí mí cáng

风轻悄悄的,草软绵绵的。
fēng qīng qiāo qiāo de cǎo ruǎn mián mián de

桃树、杏树、梨树,你不让我,我不让你,都开满了花赶趟儿。
táo shù xìng shù lí shù nǐ bù ràng wǒ wǒ bù ràng nǐ dōu kāi mǎn le huā gǎn tàng ér

红的像火,粉的像霞,白的像雪。
hóng de xiàng huǒ fěn de xiàng xiá bái de xiàng xuě

花里带着甜味儿;闭了眼,村上仿佛已经满是桃儿、杏儿、梨儿。
huā lǐ dài zhe tián wèi ér bì le yǎn cūn shàng fǎng fú yǐ jīng mǎn shì táo ér xìng ér lí ér

花下成千成百的蜜蜂嗡嗡地闹着,大小的蝴蝶飞来飞去。
huā xià chéng qiān chéng bǎi de mì fēng wēng wēng de nào zhe dà xiǎo de hú dié fēi lái fēi qù

野花遍地是:杂样儿,有名字的,没名字的,散在草丛里像眼睛,像星星,还眨呀眨的。
yě huā biàn de shì zá yàng ér yǒu míng zì de méi míng zì de sàn zài cǎo cóng lǐ xiàng yǎn jīng xiàng xīng xīng hái zhǎ ya zhǎ de

“吹面不寒杨柳风”,不错的,像母亲的手抚摸着你。
chuī miàn bù hán yáng liǔ fēng bù cuò de xiàng mǔ qīn de shǒu fǔ mō zhe nǐ

风里带来些新翻的泥土的气息,混着青草味儿,还有各种花的香,都在微微润湿的空气里酝酿。
fēng lǐ dài lái xiē xīn fān de ní tǔ de qì xī hùn zhe qīng cǎo wèi ér hái yǒu gè zhǒng huā de xiāng dōu zài wēi wēi rùn shī de kōng qì lǐ yùn niàng

鸟儿将巢安在繁花嫩叶当中,高兴起来了,呼朋引伴地卖弄清脆的喉咙,唱出宛转的曲子,
niǎo ér jiāng cháo ān zài fán huā nèn yè dāng zhōng gāo xìng qǐ lái le hū péng yǐn bàn de mài nòng qīng cuì de hóu lóng chàng chū wǎn zhuǎn de qū zi

跟轻风流水应和着。牛背上牧童的短笛,这时候也成天嘹亮地响着。
gēn qīng fēng liú shuǐ yīng hé zhe niú bèi shàng mù tóng de duǎn dí zhè shí hòu yě chéng tiān liáo liàng de xiǎng zhe

雨是最寻常的,一下就是三两天。可别恼。看,像牛毛,像花针,像细丝,密密地斜织着,
yǔ shì zuì xún cháng de yī xià jiù shì sān liǎng tiān kě bié nǎo kàn xiàng niú máo xiàng huā zhēn xiàng xì sī mì mì de xié zhī zhe

人家屋顶上全笼着一层薄烟。树叶儿却绿得发亮。小草儿也青得逼你的眼。
rén jiā wū dǐng shàng quán lóng zhe yī céng báo yān shù yè ér què lǜ dé fā liàng xiǎo cǎo ér yě qīng dé bī nǐ de yǎn

傍晚时候,上灯了,一点点黄晕的光,烘托出一片安静而和平的夜。
bàng wǎn shí hòu shàng dēng le yī diǎn diǎn huáng yūn de guāng hōng tuō chū yī piàn ān jìng ér hé píng de yè

在乡下,小路上,石桥边,有撑着伞慢慢走着的人;地里还有工作的农民,披着蓑戴着笠。
zài xiāng xià xiǎo lù shàng shí qiáo biān yǒu chēng zhe sǎn màn màn zǒu zhe de rén de lǐ hái yǒu gōng zuò de nóng mín pī zhe suō dài zhe lì

他们的房屋,稀稀疏疏的,在雨里静默着。
tā men de fáng wū xī xī shū shū de zài yǔ lǐ jìng mò zhe

天上风筝渐渐多了,地上孩子也多了。城里乡下,家家户户,老老小小,也都赶趟儿似的,一个个都出来了。
tiān shàng fēng zhēng jiàn jiàn duō le de shàng hái zi yě duō le chéng lǐ xiāng xià jiā jiā hù hù lǎo lǎo xiǎo xiǎo yě dōu gǎn tàng ér shì de yī gè gè dōu chū lái le

舒活舒活筋骨,抖擞抖擞精神,各做各的一份事儿去。
shū huó shū huó jīn gǔ dǒu sǒu dǒu sǒu jīng shén gè zuò gè de yī fèn shì ér qù

“一年之计在于春”,刚起头儿,有的是工夫,有的是希望。
yī nián zhī jì zài yú chūn gāng qǐ tóu ér yǒu de shì gōng fū yǒu de shì xī wàng

春天像刚落地的娃娃,从头到脚都是新的,它生长着。
chūn tiān xiàng gāng luò de de wá wá cóng tóu dào jiǎo dōu shì xīn de tā shēng zhǎng zhe

春天像小姑娘,花枝招展的,笑着,走着。
chūn tiān xiàng xiǎo gū niáng huā zhī zhāo zhǎn de xiào zhe zǒu zhe

春天像健壮的青年,有铁一般的胳膊和腰脚,他领着我们上前去。
chūn tiān xiàng jiàn zhuàng de qīng nián yǒu tiě yī bān de gē bó hé yāo jiǎo tā lǐng zhe wǒ men shàng qián qù

Contributing

  • Fork this repo
  • Clone your repo
  • Install dependencies
  • Checkout a feature branch
  • Feel free to add your features
  • Make sure your features are fully tested
  • Open a pull request, and enjoy <3

MIT license

Copyright (c) 2014 lsong

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.