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

manatee-workflow-sdk

v0.0.1

Published

海牛工作流SDK

Downloads

2

Readme

海牛工作流SDK

海牛SDK包括两个版本,工程化版本和js版本。工程化版本可通过pnpm run build 生成manatee-workflow-sdk.js文件,引入海牛工作台即可。

js版本存放在sdk-js目录中,可直接修改manatee-workflow-sdk.js文件,然后引入海牛工作台。

SDK 功能

配置

| 名称 | 默认 | 描述 | | ---- | ---- | ---- | | enable | false | 是否启用SDK功能,true: 启动; false: 不启动SDK功能,默认使用海牛工作台的用户接口 |

方法列表

| 方法名 | 参数 | 输出 | | ---- | ---- | ---- | | getUserList | (pagination: Pagination, filter?: UserItem) => {} | Promise<{ data: UserItem[], total: number}> | | getRoleList | (pagination: Pagination) => {} | Promise<{ data: RoleItem[], total: number}> | | getUserNameByIds | (ids: string[]) => {} | Promise<string[]> | | getRoleNameByIds | (ids: string[]) => {} | Promise<string[]> |

类型定义

| 类型 | 参数 | | ---- | ---- | | Pagination | { page = 1, size = 10 } | | UserItem | { id: string | number, name: string} | | RoleItem | { id: string | number, name: string} |

目录介绍

  • src: SDK工程化版本相关代码, 可通过pnpm run build编译
  • playground: 测试工程。可通过pnpm run dev启动
  • sdk-js: js版本的SDK,可直接修改js,然后把文件引入海牛工作台

工程化版本介绍

工程化版本最好使用pnpm管理工具, 因为使用了pnpm workspace功能,将playground和工程代码放在了相同仓库中

开始

1. 安装依赖
pnpm i

2. 测试SDK
pnpm run dev

3. 打包SDK,输出(dist/manatee-workflow-sdk.js)
pnpm run build