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

abcwallet

v1.7.0

Published

The only and best SDK for ABCWallet application development.

Downloads

13

Readme

abcwallet.js

这是一个用于开发运行在 ABCWallet 的 webview 中应用准备的 SDK ,通过它你可和 ABCWallet 进行一些通常浏览器中无法提供的交互 ,比如设置 webview 的外观、对区块链交易进行签名等。

Installation

通过 npm i abcwallet 即可安装本 SDK 作为项目依赖,我们同时提供了 cjs 模块, esm 模块和 umd 模块三种输出,可以通过设置 package.json 的 main 和 browser 字段来按需引用,也可以在 html 引入 umd 模块来直接使用。

Usage

本项目会导出一个 abcwallet 对象,如果使用模块化开发,直接引入模块即可。如果直接引入 js ,本项目会在全局暴露一个 ABCWallet 对象。无论何种方式,只要通过 ABCWallet.{namespace}.{method}( params ) 即可调用对应接口。

调用接口示例:

ABCWallet.webview.setOrientation({ horizontal: e.target.value })

想要接收来自钱包的通知,因为 ABCWallet 是一个 EventEmitter 的子类,所以可以通过 ABCWallet.on('notify:{event}, function (params ...) { ... } ) 来订阅通知,其中 notify: 是为了区分而必须的固定前缀。

接收通知示例:

ABCWallet.on('notify:changeIdentity', function (params) {
  console.log('Receive notify:', params)
})

More

clone 本项目并安装依赖,然后运行 npm run dev 可以看到一个调试页面,该页面包含了各种接口的调用,你可以在 ABCWallet 钱包中打开此页面查看各种接口、参数的调试效果。