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 🙏

© 2025 – Pkg Stats / Ryan Hefner

moon-editor

v1.0.0-alpha.2.1

Published

a beautiful editor

Downloads

7

Readme

Moon Editor

介绍

Moon Editor —— 一个漂亮,轻量级的 web 富文本编辑器,配置方便,使用简单。支持 IE10+ 浏览器。

Netlify Status

moon-editor

同时支持:

  • React
  • Vue
  • 支持浏览器端直接调用
  • 支持中英文转换

使用

MoonEditor({
    locale: 'zh_cn', // zh_cn or en
    isImageBase64: true,  // 当为true时,编辑器不会执行上传服务器的动作
    isImageExtensions: true, // 当为false时,编辑器不会开启图片的拓展支持,比如说修改图片尺寸
    uploadServer: {
        url: 'http://127.0.0.1:3000/upload',
        method: 'post'
    },
    content: `
        <h2>
        基于tiptap的编辑器,
        </h2>
        <p>
        这是一个开箱即用,可灵活配置,漂亮的编辑器.
        </p>
        <pre><code>body { display: none; }</code></pre>
        <ul>
        <li>
            我是一个无序列表
        </li>
        <li>
            这是我的子元素
        </li>
        </ul>
        <blockquote>
        这款编辑器实在太棒了,我叫它做月亮编辑器 👏👏😎😎
        <br />
        – bs32g1038
        </blockquote>
        <br />
    `,
    onChange: function(html){
        console.log(html)
    }
});

运行 demo

  • 下载源码 https://github.com/bs32g1038/moon-editor.git
  • 安装或者升级最新版本 node(最低v8.x.x
  • 进入目录,安装依赖包 cd moon-editor && npm install
  • 安装包完成之后,运行npm run dev
  • 打开浏览器访问http://localhost:8080/

提问

关于作者