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

hollow

v0.0.2

Published

hollow(treehole),publish secret by anonymous.

Downloads

12

Readme

hollow

树洞 install:

npm install -d hollow

usage: var hollow=require('hollow'); var path=require('path');

var rerenAccountFile=path.join(__dirname,'/renren.json'); var weiboAccountFile=path.join(__dirname,'/weibo.json'); var wechatInfo={ //微信公共主页的信息,都可在微信公共主页申请时进行设置, token:'hollowzjut', //微信公共主页的token url:'/wechat' //微信接收消息的url, }; hollow.work(rerenAccountFile,weiboAccountFile,wechatInfo,function(err,info){ console.log(err); console.log(info); }); ///////////////////////////////////////////// renren.json内容如下: { "email": "xxxxxxxxxx", "passwd": "xxxxx", "isPage": "true" } weibo.json内容如下: { "email": "[email protected]", "passwd": "sx1234561" } /////////////////////////////////////////////

注意:如果weibo或者人人的cookie失效了,默认的动作是退出程序,所以需要外面做好退出自动重启的控制。 人人每天凌晨会cookie失效,微博cookie失效还未知。

比如用一个main.js写上上面的usage内容,再用一个daddy.js写下面的内容:

//如果要输验证码的话,直接调目标文件,不要从这里进入 function start(jsName) { console.log('Daddy Process Is Running.'); var ls = require('child_process').spawn('node', [jsName]); ls.stdout.on('data', function (data) { console.log(data.toString()); }); ls.stderr.on('data', function (data) { console.log(data.toString()); }); ls.on('exit', function (code) { console.log('Child Process Exited With Code ' + code); delete(ls); setTimeout(start,5000,jsName); });

}

start('main.js'); //这个简单的文件可以起到自动重启的功能

我的邮箱[email protected]