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

rongsms

v1.0.1

Published

容联云短信接口nodejs实现

Downloads

12

Readme

rongSMS

一个nodejs实现的容联云发送短信模板模块(云联云官方没有提供nodejs实现的版本),支持node7.6以上版本。支持所有短信模板。 一些常用的容联云返回码:

| code | 含义 | |-------|------------------------------------| |000000 | 发送成功 | |160038 | 短信验证码发送过频繁 | |160040 | 该手机号短信验证码发送次数超过当日限制 |

Installation

$ npm install rongsms

or

$ yarn add rongsms

Usage

const rongSms = require('rongSms');

//生成验证码,在发送验证码是可以用来生成6位验证码。如果不是发送验证码可以不用。
const code = rongSms.generate_code();

//初始化
//account_sid: 主账户sid,登陆云通讯网站后,可在控制台首页看到开发者主账号ACCOUNT SID
//account_token: 主账户Token,登陆云通讯网站后,可在控制台首页看到开发者主账号AUTH TOKEN。
//app_id: 请使用管理控制台中已创建应用的APPID。
rongSms.init_sms(account_sid, account_token, app_id);

//发送短信
//phone:接受短信手机号
//arr: 数组,对应短信模板中的替换内容。如短信模板为:您的验证码为{1},请于{2}内正确输入,如非本人操作,请忽略此短信。arr取值为:['123456', '10分钟']
//template_id:模板id
rongSms.send_sms(phone, arr, template_id);