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

zaun_plugins

v1.0.8

Published

to make RpgMaker plugin easier,you can use my plugins

Downloads

4

Readme

example

该仓库会不断更新中,如果你觉得不错,还希望点个star 谢绝抄袭或者引入后不引入我名字,一经发现,仓库销毁,代码清空 使用案例 Zaun_PluginBase.js 如果你在你自己的插件中写好了插件参数 你可以这样使用

  1. 获取需要使用的部分
  2. 使用 ,要注意使用方法
const Parameter = Zaun.pluginBase.Parameter;
//或者你使用解构
//const {Parameter} = Zaun.pluginBase;
const param = Parameter.from();
const a = param.a;
  1. 将获取的对象应用到你需要的场景
    你可以不必处理各种繁杂的插件参数选项 直接使用即可,非常方便 譬如你想将一个object进行deepClone 你可以这样
const {deepClone} = Zaun.pluginBase;
const cloneObj = deepClone(oriObj);

你可以随时写入新的data 的json文件

const {writeDataAsync} = Zaun.pluginBase;
const obj = {name:"Lili",weapon:{}};
async ()=>{
    await writeDataAsync("myData/","myJSON",obj);
}

好了到这里可以介绍其他功能,剩下的功能都有jsdoc进行解释用法,就不需要我一一说明了 Zaun_WindowExtension.js 该插件旨在告诉你如何简单快速的创建一些实用的窗口

//以下代码需要放入某个场景中使用
//in some Scene to use ,like Scene_Map
const {Window_BaseEx} = Zaun.windowExtension; 
const rect = new Rectangle(600,300,400,300);
const sampleWindow = new Window_BaseEx(rect);
sampleWindow.addText("这是一个简易窗口啊啊啊");
sampleWindow.addText("简单写一下就睡觉")
sampleWindow.totalTextWidth = 8;//限制每行可标准显示的最大字体数量
this.addWindow(sampleWindow); 

应用场景

Rpg Maker MZ 不支持mv使用,用到了es9的语法,会在较旧的设备上不兼容 如果报错,请尝试更新nwjs版本,自行百度nwjs官网,下载current 替换到steam里面的mz 本地文件,nwjs-win 文件夹内容全部替换

兼容性

我的这部分插件请置于插件列表最顶层,该插件会对部分底层进行优化重构

高度模块化的功能细分

即使你是个小白,但是你会一点js,你也可以很好的使用我的插件作为基础创建自己的 插件 我想大家都应该受够了插件垄断对吧?

npm安装

npm安装包 使用你的编辑器打开本地文件夹,执行以下命令

使用

//如果你要使用导入的方式,你可以
import {pluginBase , windowExtension} from "./index";
//或者
const {pluginBase , windowExtension} = require("zaun_plugins");
const {deepClone} = pluginBase;
const {Window_BaseEx} = windowExtension;

最后

仓库内的插件可以免费使用 如果你用了我的插件请在项目或者你的插件中引入我的名字 该插件遵循开源mit licence协议