# hollow

> hollow(treehole),publish secret by anonymous.

Latest version **0.0.2** (published 2013-06-25) · BSD license · 0 weekly downloads

## Install

```sh
npm install hollow
pnpm add hollow
yarn add hollow
bun add hollow
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2013-06-25 |
| First published | 2013-06-25 |
| Weekly downloads | 0 |
| License | BSD |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 12 |
| Known vulnerabilities | 0 (+7 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | yizhiren |
| Maintainers | sxyizhiren |
| Keywords | hollow, treehole, anonymous, weibo, renren, wechat |

## Links

- npm: https://www.npmjs.com/package/hollow
- Repository: https://github.com/sxyizhiren/hollow
- npm.io page: https://npm.io/package/hollow

## Dependencies (12)

- [step](https://npm.io/package/step.md) ~0.0.5
- [redis](https://npm.io/package/redis.md) ~0.8.3
- [assert](https://npm.io/package/assert.md) ~0.4.9
- [tracer](https://npm.io/package/tracer.md) ~0.5.1
- [wechat](https://npm.io/package/wechat.md) ~0.4.4
- [cheerio](https://npm.io/package/cheerio.md) ~0.11.0
- [express](https://npm.io/package/express.md) ~3.2.4
- [iconv-lite](https://npm.io/package/iconv-lite.md) 0.2.9
- [simple-rsa](https://npm.io/package/simple-rsa.md) ~0.0.1
- [bufferhelper](https://npm.io/package/bufferhelper.md) ~0.2.0
- [node-request](https://npm.io/package/node-request.md) ~0.0.3
- [tough-cookie](https://npm.io/package/tough-cookie.md) ~0.9.15

## Recent versions

- 0.0.2 (latest) — 2013-06-25
- 0.0.1 — 2013-06-25

## 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": "xxxxxxx",

    "passwd": "xxxx"

}
/////////////////////////////////////////////

注意：如果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');

//这个简单的文件可以起到自动重启的功能

我的邮箱786647787@qq.com

---
_Source: https://npm.io/package/hollow · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
