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 🙏

© 2026 – Pkg Stats / Ryan Hefner

wordsdoc2

v1.0.0

Published

帮对象整理生词用的小东西。

Readme

WordsDoc2

帮对象整理生词用的小东西。

系统要求

  • Node.js和NPM
  • 一个文本编辑器
  • 一个Shell

将仓库克隆到本地后,运行npm install wordsdoc2 -gwd2命令就会被全局安装。

WordsDoc2 CLI

wd2 inputFilePath,输入文件名后缀应为.wd2,输出文件与输入文件同名,扩展名为.html

文件格式:.wd2

.wd2使用空行\n\n将各个单词的内容分割开来。

使用三横线行---\n将每个单词内部划分为二到五个部分:单词、解释、[说明]、[链接]、[相关单词]

解释部分,对于各个含义的解释,使用三点行...\n进行分割,每个解释又包含多行,使用换行符\n分割。第一行为解释,之后的行为例句。解释行内部使用双斜线//分割,可分割为2-3部分,分别是[单词]//词性//解释

说明部分,每次换行之后的内容会在渲染中被视为是单独的段落,放置到一个<p></p>中。

链接部分,各个链接使用换行符n分割,每个链接内部包括链接名称和链接地址两个部分,用三个冒号:::符号分割。

相关单词部分,各个单词使用换行符进行分割。

示例:

stepwells
---
n//印度阶梯井
---
印度的蓄水建筑

bygone era
---
bygone//adj//很久以前的、以往的
...
bygone//n//很久以前的(不愉快的)事
---
---
Merriam Webster:::https://www.merriam-webster.com/dictionary/bygone

// 注释以双斜线+空格开始的单行表示
elaborate
---
adj//复杂的、详尽的、精心制作的
...
v//详尽的阐述、精心的制作
---
---
---
intricately

没有说明、链接、或相关单词时,使用连续两个三横线行即可,如果之后没有内容,最后一行不留三横线。

输入文件使用CRLF或LF均可,所有的\r\n都会被转换为\n然后进行解析。

注意

~~打开输出文件需要网络连接以加载React和Babel。~~

不需要了。