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

nodebb-plugin-dipperin-use

v0.0.15

Published

A NodeBB plugins for using dipperin

Downloads

1

Readme

QuickStart for NodeBB

本项目是 NodeBB 插件的快速开始轮子, 您可以通过本项目来快速初始化您的 NodeBB 插件项目。创建本项目是为了促进 NodeBB 追随 ES 的现代化。 您可以通过本项目来使用任何的 ES6+ 语法(如果不考虑引擎支持)。 有关 NodeBB 的 Hooks, 以及其他的开发信息。请访问 NodeBB 社区 或者 Github 中的 Wiki。

开始

  1. 克隆本项目至本地。
  2. 删除项目中的 .git 文件夹
  3. 使用 git init 初始化一个属于你的新仓库。
  4. 修改... 提交

安装依赖

pnpm i

使用类静态方法

例如, 你在 core.js 中这样编写:

class Core {
    static func () {
        return 'Hello, World!'
    }
}

我们需要在 library.js 中做出如下更改:

// 获取对象的所有键
//  const methods = Object.getOwnPropertyNames(Object.getPrototypeOf(origin))
const methods = Object.getOwnPropertyNames(origin)

// 删除不必要的键
// _.pull(methods, 'constructor')
// 如果类使用静态方法, 请注释掉上方, 并使用下方的代码代替
_.pull(methods, 'prototype', 'length', 'name')

// 载入插件库核心
// const Origin = require('./src/core')
// const origin = new Origin()
const origin = require('./src/core')