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

anquanssl

v0.1.1

Published

[<p align="center"><img src="https://github.com/anquanssl/.github/raw/main/profile/logo_dark.png" width="600" height="85"/></p>](https://www.anquanssl.com?__utm_from=github-org-profile#gh-dark-mode-only) [<p align="center"><img src="https://github.com/anq

Downloads

1

Readme

AnquanSSL

AnquanSSL, aka "Security SSL", also known as "安全 SSL" in Mandarin, founded in 2018, and our mission is providing affordable, secure, and enhanced TLS utilization experiences in the Greater China market.

这是 安全SSL 开放API的 NodeJS SDK.

获取 AccessKey 秘钥对.

此SDK包仅面向开发者提供支持,若您是分销商,您可能需要:

如果您要其它编程语言的开发者,您可能需要

安装

install via NPM

npm i anquanssl

or Yarn

yarn add anquanssl

使用

import Client, {request} from 'anquanssl';

const accessKeyID = "";
const accessKeySecret = "";
const product = 'sslcom_dv_flex';

const client = new Client(accessKeyID, accessKeySecret);

// 产品列表
resp = await client.product.product_list();
if (!resp.success) {
    console.error(resp.message);
    process.exit(1);
}
console.log("product_list", resp, resp?.data?.products);



// 证书下单
req = new request.CertificateCreateRequest();
req.product_id = product;
req.period = "annually";
req.csr = csr;
req.unique_id = (Math.random() + 1).toString(36).substring(2); // 建议使用本地业务订单号拼接重签名操作次数
req.contact_email = "[email protected]";
req.domain_dcv = {
    "domain1.com": "dns",
    "*.domain2.com": "dns",
};
req.notify_url = "https://" + (Math.random() + 1).toString(36).substring(2).toLowerCase() + ".app/notify";
resp = await client.order.certificateCreate(req);
if (!resp.success) {
    console.error(resp.message);
    process.exit(1);
}
console.log("certificate_create", resp);
const service_id = resp.data.service_id; // 下单成功证书流水号


// 证书重签接口
req = new request.CertificateReissueRequest();
req.service_id = service_id;
req.unique_id = (Math.random() + 1).toString(36).substring(2); // 建议使用本地业务订单号拼接重签名操作次数
req.csr = csr;
req.contact_email = '[email protected]';
req.domain_dcv = {
    "domain3.com": "http",
    "domain4.com": "http",
    "*.domain5.com": "dns",
}
resp = await client.order.certificateReissue(req);
if (!resp.success) {
    console.error(resp.message);
    process.exit(1);
}
console.log("certificate_reissue", resp);



// 证书查询
req = new request.CertificateDetailRequest();
req.service_id = service_id;
resp = await client.order.certificateDetail(req);
if (!resp.success) {
    console.error(resp.message);
    process.exit(1);
}
console.log("certificate_detail", resp);



// 检查DCV接口
req = new request.CertificateValidDCVRequest();
req.service_id = service_id;
resp = await client.order.certificateValidateDCV(req);
if (!resp.success) {
    console.error(resp.message);
    process.exit(1);
}
console.log("certificate_validate_dcv", resp);



// 证书退款
req = new request.CertificateRefundRequest();
req.service_id = service_id;
resp = await client.order.certificateRefund(req);
if (!resp.success) {
    console.error(resp.message);
    process.exit(1);
}
console.log("certificate_refund", resp);

贡献

特别鸣谢以下工程师对本项目的贡献:

@jellnicy