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

jd-wallet-sdk

v0.4.1

Published

京东钱包 sdk api 接口

Downloads

4

Readme

京东钱包 sdk api 接口

安装

首先下载安装 jd-wallet-sdk 由于没有放到 npm 或 github 上,不能通过 npm 直接安装,需要先下载到本地

git clone git://git.jd.com/wangyanjun8/jd-wallet-sdk.git

并切换到分支 npm cd jd-wallet-sdk && git checkout npm

然后再执行以下命令来安装(假如,jd-wallet-sdk 下载的路径为: file:///Users/username/gitworkspace/jd-wallet-sdk)

npm install --save jd-wallet-sdk file:///Users/username/gitworkspace/jd-wallet-sdk

使用

es6 写法

import walletSdk from 'jd-wallet-sdk';

es5 写法

var walletSdk = require('jd-wallet-sdk');

页面中直接引入

<script src="jd-wallet-sdk/dist/jd-wallet-sdk.min.js"></script>

//提示用法
jdWalletApi.alert('提示信息');

文档

该文档基于 gitbook 生成,详细查看这里

例子

链接地址: http://172.25.47.49/jd-wallet-sdk/examples/

手机端用微信扫描以下二维码,即可在钱包中查看相关例子

jd-wallet-sdk 扫码

开发维护该项目(以下适合开发维护人员用)

下载项目代码后需要安装 Node.js 和 gulp npm install -g gulp

然后安装 npm 相关包 npm install

Wallet Api 打包

gulp build

文档服务启动,利用 gitbook

gulp gitbook:serve

启动服务后,在浏览器中输入 http://localhost:4000/ 即可查看相关文档

打包文档

gulp gitbook:build

打包后,把 docs/_book 发布到服务器 http://172.25.47.49:8000/#/export/www/default/jd-wallet-sdk/docs

例子服务启动

gulp example

启动后,在浏览器中输入 http://jd.wallet.sdk:9090/ 需要配置本地 host 127.0.0.1 jd.wallet.sdk

编译打包例子

gulp example:build

打包后,把 examples-dist 发布到服务器 http://172.25.47.49:8000/#/export/www/default/jd-wallet-sdk/examples

如果想Wallet Api 打包 例子打包 文档打包,则直接执行以下命令

gulp

参考资料