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

@yossi-lee/wemd-cli

v1.0.4

Published

Convert Markdown to beautifully styled HTML with themes

Downloads

535

Readme

@yossi-lee/wemd-cli

将 Markdown 转换为精美排版的 HTML — 命令行工具

简介

这是一个命令行工具,可以将 Markdown 文件转换为带有精美内联样式的 HTML 输出。支持 13 种主题,适合用于微信公众号文章排版、文档发布等场景。

本项目 fork 自 WeMD,提取了其核心 Markdown 渲染引擎和主题系统,封装为独立的 CLI 工具。

安装

npm install -g @yossi-lee/wemd-cli

或临时使用:

npx @yossi-lee/wemd-cli <file>

用法

wemd-cli <file> [options]

选项

| 选项 | 说明 | 默认值 | | --------------------- | ---------------------------------------- | ------- | | -t, --theme <theme> | 应用的主题 | basic | | -o, --output <file> | 输出文件路径(不指定则输出到终端) | stdout | | --full-html | 输出完整 HTML 文档(可直接在浏览器打开) | false |

可用主题

| 主题名 | 风格描述 | | ----------- | -------------- | | basic | 默认简约风格 | | default | 自定义默认风格 | | academic | 学术论文风格 | | aurora | 极光玻璃风格 | | bauhaus | 包豪斯风格 | | cyberpunk | 赛博朋克风格 | | knowledge | 知识库风格 | | luxury | 黑金奢华风格 | | morandi | 莫兰迪森林风格 | | brutalism | 新粗野主义风格 | | receipt | 购物小票风格 | | sunset | 落日胶片风格 | | github | GitHub 风格 |

示例

# 输出到终端
wemd-cli README.md

# 指定主题并保存到文件
wemd-cli article.md -t academic -o output.html

# 输出完整 HTML(可直接浏览器预览)
wemd-cli article.md -t github --full-html -o preview.html

# 使用 npx 临时运行
npx @yossi-lee/wemd-cli article.md -t default -o output.html

许可证

MIT

原始项目

  • WeMD — 原始项目,一个功能丰富的 Markdown 编辑器