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 🙏

© 2026 – Pkg Stats / Ryan Hefner

node-cotong-ys2u8-login

v1.0.0

Published

用于NODERED节点登录YS并连接U8数据库

Downloads

15

Readme

node-cotong-ys2u8-login

用于 Node-RED 的企通数易通节点,支持用友 YonSuite 登录并连接 U8 数据库。

功能特性

  • ✅ 支持用友 YonSuite API 认证
  • ✅ 支持 MySQL 数据库连接
  • ✅ 支持 SQL Server 数据库连接
  • ✅ 自动重试机制
  • ✅ 错误处理和异常捕获
  • ✅ 安全的密码处理

安装

npm install node-cotong-ys2u8-login

或者在 Node-RED 中通过节点管理器安装。

使用方法

  1. 将节点拖拽到 Node-RED 流程中
  2. 配置 YonSuite API 参数:
    • API URL
    • App Key
    • App Secret
  3. 配置数据库连接参数:
    • 数据库类型(MySQL/SQL Server)
    • 主机地址
    • 端口号
    • 用户名和密码
    • 数据库名称
  4. 输入 SQL 查询语句

配置参数

YonSuite API 配置

  • ysapiurl: YonSuite API 基础 URL
  • ysappkey: 应用密钥 ID
  • ysappsecret: 应用密钥

数据库配置

  • dbcategory: 数据库类型(mysql/mssql)
  • dbhost: 数据库主机地址
  • dbport: 数据库端口
  • dbuser: 数据库用户名
  • dbpassword: 数据库密码
  • database: 数据库名称
  • query: SQL 查询语句

输出格式

成功时:

{
  "output": "success",
  "result": [...],
  "config": {...},
  "error": null,
  "yonsuite_access_token": "token",
  "signature": "signature"
}

错误时:

{
  "output": "error",
  "result": [],
  "config": {...},
  "error": "错误信息",
  "yonsuite_access_token": "token",
  "signature": "signature"
}

版本历史

1.0.0

  • 初始版本
  • 支持 MySQL 和 SQL Server 数据库
  • 支持 YonSuite API 认证

许可证

ISC

作者

karonluo - 上海企通数字科技有限公司 网站:www.cotong.com

支持

如有问题请提交 Issue 或联系技术支持。