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

@ddn/node-sdk

v2.5.0

Published

DDN Node.js SDK

Readme

DDN js Library

About 关于

这是 DDN javascript SDK,兼容基于Node.js的服务端和浏览器端

Install 安装

npm install @ddn/node-sdk --save

Usage 使用

Node.js可以这样调用

import DdnJS from '@ddn/node-sdk'; // const DdnJS = require('@ddn/node-sdk).default

// 默认的配置和常量是测试链的,想要使用自己的配置
在项目根目录建立 .ddnrc.js 或 config/config.js 配置

// 链参数常量,向链定制项目方获取,并放置在 config/constants.js

Please reference the ddn http interface documents

Note:Please copy constants to folder config in your project, and copy .ddnrc.js to your project`s root folder

Develop 开发

注意的是,不建议在其他组件里调用本包,避免循环引用;同时,本包使用的 Http Api,所以不需要引入资产包。

Release 发布

每次修改发布,请执行一次如下命令

$ cd /path/to/ddn
$ pnpm build --filter @ddn/js-sdk

Test 测试

测试用例在test文件夹下,运行测试需要在工程目录下,使用pnpm test执行,可以执行整个测试

$ pnpm test

如果需要更细致的测试,比如:测试 AoB 资产,请使用:

$ pnpm test nodeSdk.aob.test.js // 测试aob模块

如果需要了解更细致的信息,请使用 debug ,例如:

$ DEBUG=debug_name pnpm test nodeSdk.aob.test.js // debug_name 是测试文件里,通过 debug('debug_name') 定义的。