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

autojs-common-business

v1.0.8

Published

专为 Auto.js 设计的业务逻辑工具库,旨在简化日常自动化任务中的常见业务流程处理。

Downloads

32

Readme

Auto.js Common Business 库

简介

autojs-common-business 是一个专为 Auto.js 设计的业务逻辑工具库。本库旨在简化日常自动化任务中的常见业务流程处理,提供了时间处理、用户界面、验证和一系列实用工具的功能封装。

主要功能

  • 时间处理 (acb.time): 提供了时间相关的处理功能,如获取特定服务器时间等。

  • 用户界面 (acb.ui): 封装了用户界面相关的操作,便于在 Auto.js 脚本中快速构建和管理 UI。

  • 验证 (acb.verification): 提供了一系列验证工具,用于数据校验和安全性检查。

  • 实用工具 (acb.utils): 包含了多种实用函数和工具,用于简化常见的编程任务。

安装

npm install autojs-common-business

使用

在您的 Auto.js 脚本中,您可以通过 require 语句引入本库,并使用上述提到的功能模块。

// 引入 acb 库,因为实际运行环境是移动端的autojs,只支持简单的模块加载系统,这里只能使用物理路径
const acb = require("node_modules/autojs-common-business/index.js");
const targetTime = new Date(); // 设置目标时间为当前时间

// 假设我们想等待明天的同一时刻
targetTime.setDate(targetTime.getDate() + 1);

// 等待目标时间
acb.time
    .waitForTime(targetTime)
    .then(() => console.log("目标时间已到达"))
    .catch((error) => console.error("等待失败:", error));

版本信息

当前版本:1.0.0

贡献与反馈

如果您在使用过程中发现任何问题,或有改进建议,欢迎通过 GitHub 仓库提交 issue 或 pull request。

仓库信息

请注意,由于 Auto.js 主要运行在 Android 设备上,对于 npm/yarn 包管理的支持可能有所不同。建议查阅 Auto.js 的官方文档以获取更详细的集成指导。此外,本 README 是基于提供的代码和 package.json 文件自动生成的,可能不包含所有详细信息和最新更新。请务必参考 GitHub 仓库中的最新内容。