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

NodeSDK-Base

v1.0.2

Published

node.js module simulates php sdk base functions, such as curl, syslog and etc.

Downloads

3

Readme

[sdk-base] 中文文档

[NPM] [GIT]

简介

sdk-base是所有nodejs的服务sdk的基础依赖,所有的sdk均需要引入sdk-base来实现基础的curl,syslog等功能。 在具体的代码中,sdk-base以父类的形式存在。

version: 1.x.x 使用的是旧版node-gyp 和 gcc, node版本需要v0.12.7,不能使用新的node版本,否则modern-syslog编译会出错。 version: 2.x.x 解决了1.x.x的问题,node,npm版本均可以升级到最新版本,需要将gcc升级到4。

参数

{Object} config 传入配置对象

  • hostname: 域名。必填,当域名解析时,直接使用域名即可。
  • port: 端口号。 必填。如8360端口。
  • logType: 必填,syslog类型名。一般会有具体业务SDK传入。
  • logTag: 必填,syslog标签名。一般会有具体业务SDK传入。
  • ip: IP地址。 选填,当域名没有解析的时候,传入IP地址则是必须的,与hostname配合使用
  • host: 最终curl的URI。选填,host最终会包装成 (hostname|ip):port 的形式, 所以如非必要可以不用这个属性。