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

uni-app-mp-html

v2.5.0

Published

uni-app 版本的 mp-html, 基于`[email protected]` 构建而成, 默认携带一键复制脚本,和开启一些插件

Downloads

37

Readme

uni-app-mp-html([email protected])

forked from jin-yufeng/mp-html

此版本制作的目的,就是嫌麻烦,每次获取源代码最新的改动后,都要重新打包,然后把产物手动复制到,源代码的各个目录。

所以通过再次发布一个 npm 包的方式,来同步多个项目之间 mp-html 的升级,和插件配置。

此包基于 [email protected]版本构建而成,默认携带一键式复制脚本,详见下方:

默认开启插件

plugins: [
    // 按需打开注释即可
    'audio',     // 音乐播放器
    'editable',  // 内容编辑
    'emoji',     // 小表情
    'highlight', // 代码高亮
    'markdown',  // 解析 md
    // 'latex',     // 解析 latex 太大了!
    'search',    // 关键词搜索
    'style',     // 解析 style 标签
    // 'txv-video', // 使用腾讯视频
    // 'img-cache'  // 图片缓存
],

Usage

使用组件

// @ts-ignore
import mpHtml from "uni-app-mp-html/components/mp-html/mp-html.vue";

export default Vue.extend({
  components: {
    mpHtml,
  },
});

使用脚本

携带static复制脚本: mp-html-init-static <path>

携带mp-html复制脚本: mp-html-sync <path>

如果你想复制文件到 static,请在根目录下执行:

# hbuilder 项目
npx mp-html-init-static static
# cli 项目
npx mp-html-init-static src/static

如果你遇到子包,无法使用npm,必须进行直接的复制粘贴,请在根目录下执行:

# 复制 mp-html 代码到指定目录
npx mp-html-sync path/to/folder
# 比如复制到子包: subs/markdown
npx mp-html-sync subs/markdown/components/mp-html

highlight prism

额外添加了许多语言的支持,具体见:

https://github.com/sonofmagic/mp-html/blob/uni-app-mp-html-dev/plugins/highlight/prism.min.js