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

kingfile

v0.8.5

Published

#### 安装

Readme

这是金山企业云盘项目Nodejs SDK

安装

yum install libffi-devel yum install gcc yum install gcc-c++

npm install -g node-gyp npm install -g --unsafe-perm kingfile

直接调用SDK

var kfile = require("./lib/kfile"); var sdk = new kfile.KingFileSDK({host: ip_address, port: port, device_id: "xxxxx"}); var myAccount = sdk.account();

命令行模式

  1. 登录 kflogin -H 192.168.140.110 -i ceshi001 -u admin -p 123456 #-f可以删除登录缓存文件,重新登录, -d选项开启调用日志 多用户使用时kflogin的返回里会有一个info_key,使用info_key可以指定用户

  2. 上传 kfupload -i 21474836482 -t node_modules #-i指定要上传到的云端文件夹的id 多用户使用时kfupload -p /share/path/to/upload -t node_modules -k xfdfdfdfdfd #k为kflogin返回的key 共享空间以/share开头,个人空间以/cage开头

  3. 下载 kfdownload -i 21474836490 #-i指定要下载的云端文件(夹)的id

服务模式

kfservice -p 8080 -d # -d选项下开启调试模式,打印详细调用日志,并且是单进程

  1. 登录 curl -i -XPOST http://localhost:8080/kfile/login?host=192.168.140.110&user=admin&pass=123456&ident=ceshi001

  2. 上传 curl -i -XPOST http://localhost:8080/kfile/file/upload?xid=21474836482&path=/Users/nathon.wang/MyStudy/kfile-nodejs-sdk/bin/service.js

  3. 下载 curl -i http://localhost:8080/kfile/file/download?xid=8589937563

如果是调用api直接登录,可以将登录后的信息写到~/.logined_info文件里,然后直接上传,下载 logined_info文件格式如下 { "domain_id": 1, "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0OTc0NDM0NTEsInVzZXJfaWQiOjEsImlzYSI6MTQ5NjgzODY1MSwiZGV2aWNlIjoiV0VCLTEyMzQ1NiIsImlzcyI6ImxvZ2luIn0.5IGopnRcKVLjyNE2KOmUhS9SJ9dJllNY881SyrTf5No", "cage_home": 8589934594, "first_dept": 1, "user_id": 1, "xid": 2, "super_type": 1, "staff_name": "admin", "email": "", "domain_name": "ceshi001", "uquota_id": 1, "user_name": "admin", "gquota_id": 1, "dept_id": 1, "is_superuser": 1, "share_home": 8589934593, "domain_ident": "ceshi001", "host": "192.168.140.110", "port": 80, "user_agent": "kingsoft-ecloud-web;123456;0.1.0" }