{"_id":"twei","_rev":"37-64de9cb0f39bd79427c7599b376fcf9b","name":"twei","description":"a weibo cli tool","dist-tags":{"latest":"0.2.7"},"versions":{"0.1.0alpha":{"name":"twei","description":"a sina weibo cli tool","author":{"name":"justan","url":"http://blog.whosemind.net"},"version":"0.1.0alpha","repository":{"type":"git","url":"https://github.com/justan/twei.git"},"main":"index.js","scripts":{"test":"mocha"},"engines":{"node":">=0.6.7"},"dependencies":{"request":">=2.0","promised-io":"~ 0.3.0"},"devDependencies":{"mocha":">=1.0","chai":">=1.0"},"bin":{"twei":"lib/twei_cli.js"},"keywords":["weibo"],"license":"BSD","_id":"twei@0.1.0alpha","dist":{"shasum":"d0720ee5321200f1952fd97683627122def98757","tarball":"https://registry.npmjs.org/twei/-/twei-0.1.0alpha.tgz","integrity":"sha512-WqbqMyW0epCEaPclgPVN4JHdbVZUy4penRh9/Mx05JlIE6axkzy9+XaQNRCJhqr7/vn75S1sRXphYikLWsUU1w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH+EeXOvIrqbbIBYHj4wB+u18WljkCebpqVucA1QOaJmAiEAi2z1eykgvfyUVYkRxxgT5vMDzykqajAZGU+vx3X6qdA="}]},"maintainers":[{"name":"justan","email":"ckr189@gmail.com"}],"directories":{}},"0.1.0":{"name":"twei","description":"a weibo cli tool","author":{"name":"justan","url":"http://blog.whosemind.net"},"version":"0.1.0","repository":{"type":"git","url":"https://github.com/justan/twei.git"},"main":"index.js","scripts":{"test":"mocha"},"engines":{"node":">=0.6.7"},"dependencies":{"request":">=2.0","promised-io":"~ 0.3.0"},"devDependencies":{"mocha":">=1.0","chai":">=1.0"},"bin":{"twei":"lib/twei_cli.js"},"keywords":["weibo","cli"],"license":"BSD","_id":"twei@0.1.0","dist":{"shasum":"9cf897e2de777132c63464450a1cc9d32b1a15b5","tarball":"https://registry.npmjs.org/twei/-/twei-0.1.0.tgz","integrity":"sha512-dHx1CdjBSC+KC18CiGXKW6uehUK5B2rbIZTiA7N3vUb6GZuVdUgZiV3WaJxq+FGkIvjKHglnuinKB7DxASKsWg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEIpS1EtGftaOO4Vcbs75J1Ujc8YIGgG1UAnpghBwnL7AiEAhAufOd2Af/hPYRxd+aa2525hlX93Pgzd1BfNLkRriWg="}]},"maintainers":[{"name":"justan","email":"ckr189@gmail.com"}],"directories":{}},"0.1.1":{"name":"twei","description":"a weibo cli tool","author":{"name":"justan","url":"http://blog.whosemind.net"},"version":"0.1.1","repository":{"type":"git","url":"https://github.com/justan/twei.git"},"main":"index.js","scripts":{"test":"mocha"},"engines":{"node":">=0.6.7"},"dependencies":{"request":">=2.0","promised-io":"~ 0.3.0"},"devDependencies":{"mocha":">=1.0","chai":">=1.0"},"bin":{"twei":"lib/twei_cli.js"},"keywords":["weibo","cli"],"license":"BSD","_id":"twei@0.1.1","dist":{"shasum":"ae4e15ef62e2d2c3dda67c6e2b46d62dcd340b28","tarball":"https://registry.npmjs.org/twei/-/twei-0.1.1.tgz","integrity":"sha512-bWKRBMZHIWaWNgBhAY7pfpFgVUmvOHc2Vl+hswJPBkcMW+jznRbrkHxoo4UF/raeonkCRwlY/q7UuNnJRGPPjg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCA6FrsIZmGWv8JzABC1vk6J9EJzXWinX8hCXWE7bVruAIhALxTAcK/rDgjdnVT/TIWhhNWNHVSCYFwNCe7+FkShk/z"}]},"maintainers":[{"name":"justan","email":"ckr189@gmail.com"}]},"0.2.0":{"name":"twei","description":"a weibo cli tool","author":{"name":"justan","url":"http://blog.whosemind.net"},"version":"0.2.0","repository":{"type":"git","url":"https://github.com/justan/twei.git"},"main":"index.js","scripts":{"test":"mocha"},"engines":{"node":">=0.6.7"},"dependencies":{"request":">=2.0","promised-io":"~ 0.3.0"},"devDependencies":{"mocha":">=1.0","chai":">=1.0"},"bin":{"twei":"lib/twei_cli.js"},"keywords":["weibo","cli"],"license":"MIT","_id":"twei@0.2.0","dist":{"shasum":"f2d2fdf514c3275e873d48e9a326c14b6ae402a4","tarball":"https://registry.npmjs.org/twei/-/twei-0.2.0.tgz","integrity":"sha512-2KaksqBdkRrn+AKtAe5zsItof0qUpSOq3BfHv8blGbda4T15fvVRQluHz/oREHfHmlg35I1uRt6QgoOAzrNuYg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAOWfXrEBPkcR3+65l6MfofWGTTbS345z0wLFeiw4aBGAiEAmvFZVj4SAh0noa3f0XXcigq3nSlCsLFNkWzAikE6m2w="}]},"maintainers":[{"name":"justan","email":"ckr189@gmail.com"}]},"0.2.1":{"name":"twei","description":"a weibo cli tool","author":{"name":"justan","url":"http://blog.whosemind.net"},"version":"0.2.1","repository":{"type":"git","url":"https://github.com/justan/twei.git"},"main":"index.js","scripts":{"test":"mocha"},"engines":{"node":">=0.6.7"},"dependencies":{"request":">=2.0"},"devDependencies":{"mocha":">=1.0","chai":">=1.0"},"bin":{"twei":"lib/twei_cli.js"},"keywords":["weibo","cli"],"license":"MIT","_id":"twei@0.2.1","dist":{"shasum":"3764893e07a732ea7646a27f5ea2f310f4dd2d5c","tarball":"https://registry.npmjs.org/twei/-/twei-0.2.1.tgz","integrity":"sha512-jm9GdMuyTT2gWYJ8pSTMP6zZbSBhVdLuKsJ4osos18SCy8UJaeN0FFk1sQpW3egdC8RxOOU5/hCmnAExexuhaw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFyVuVQVPf15nitIeyJTfByGZKmLd5LGy2U2Xw7J+AWwAiEAnr9cH2tgI94za+cZEIefs81JfSmQZqs22gDfTkpJ6iw="}]},"maintainers":[{"name":"justan","email":"ckr189@gmail.com"}]},"0.2.2":{"name":"twei","description":"a weibo cli tool","author":{"name":"justan","url":"http://blog.whosemind.net"},"version":"0.2.2","repository":{"type":"git","url":"https://github.com/justan/twei.git"},"main":"index.js","scripts":{"test":"mocha"},"engines":{"node":">=0.6.7"},"dependencies":{"request":">=2.0"},"devDependencies":{"mocha":">=1.0","chai":">=1.0"},"bin":{"twei":"lib/twei_cli.js"},"keywords":["weibo","cli"],"license":"MIT","_id":"twei@0.2.2","dist":{"shasum":"9c08194fe60627b763edcd251a67fb343f03c1e3","tarball":"https://registry.npmjs.org/twei/-/twei-0.2.2.tgz","integrity":"sha512-JPjVEdagcDEWDCZ037p7mx8awZZ+Zm7yoAi6JlataYsIl1cLTRo6EJiMuBkeuBmXyHRrm4F6RreSMS/6T0/N3A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFtrHW2vOpU1AkLKld3rch4LLSKz+phhIFzkld7ryWxkAiEA3s0ldaYQxMh/NuiNkVsP3fO/o/jHx1dJ2U4IwykExPk="}]},"maintainers":[{"name":"justan","email":"ckr189@gmail.com"}]},"0.2.3":{"name":"twei","description":"a weibo cli tool","author":{"name":"justan","url":"http://blog.whosemind.net"},"version":"0.2.3","repository":{"type":"git","url":"https://github.com/justan/twei.git"},"main":"index.js","scripts":{"test":"mocha"},"engines":{"node":">=0.6.7"},"dependencies":{"request":">=2.0","tabtab":"~ 0.0.2"},"devDependencies":{"mocha":">=1.0","chai":">=1.0"},"bin":{"twei":"lib/twei_cli.js"},"keywords":["weibo","cli"],"license":"MIT","_id":"twei@0.2.3","dist":{"shasum":"114ef4a02b738342f1780a4ed1713d206a1d0037","tarball":"https://registry.npmjs.org/twei/-/twei-0.2.3.tgz","integrity":"sha512-3CE2B/tz3M3DNIUUtDDGChFn2gqAH47wHEB/NAmsKYtYdVJ/OXHdjsKVWwgnGdCPysO6KUZTjh3MKquCycn6Hw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC5hdbpjWTtmSfYLSlXr3McPXhvBrGsPl8Yr4RGHzZ01QIhAP1evywzpVmWXvlhTN4lvO5HYLk3yGCZt0PAlqLfY0lt"}]},"maintainers":[{"name":"justan","email":"ckr189@gmail.com"}]},"0.2.4":{"name":"twei","description":"a weibo cli tool","author":{"name":"justan","url":"http://blog.whosemind.net"},"version":"0.2.4","repository":{"type":"git","url":"https://github.com/justan/twei.git"},"main":"index.js","scripts":{"test":"mocha"},"engines":{"node":">=0.6.7"},"dependencies":{"request":">=2.0","tabtab":"~ 0.0.2"},"devDependencies":{"mocha":">=1.0","chai":">=1.0"},"bin":{"twei":"lib/twei_cli.js"},"keywords":["weibo","cli"],"license":"MIT","_id":"twei@0.2.4","dist":{"shasum":"8df79f4c7642e9bf061cab9b2871c516e113bb48","tarball":"https://registry.npmjs.org/twei/-/twei-0.2.4.tgz","integrity":"sha512-O+qIMOMo+SbIDtvVXVroPxBMhl8CKP0dE1yO3xgLb94507VtkksZhLYtmIqIZV/pMOfDgAjVBAwotmAWLHMwMQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA6daWItedqE5ribNweFCFxJ9rjyGLWSIOigucFT5ASHAiEAmk0E1LAyvCGQS4DC5lNcrvhFxFjkLc/dvPGi2wGtt3s="}]},"maintainers":[{"name":"justan","email":"ckr189@gmail.com"}]},"0.2.5":{"name":"twei","description":"a weibo cli tool","author":{"name":"justan","url":"http://blog.whosemind.net"},"version":"0.2.5","repository":{"type":"git","url":"https://github.com/justan/twei.git"},"main":"index.js","scripts":{"test":"mocha"},"engines":{"node":">=0.6.7"},"dependencies":{"request":">=2.0","tabtab":"~ 0.0.2","ini":">=1.0"},"devDependencies":{"mocha":">=1.0","chai":">=1.0"},"bin":{"twei":"lib/twei_cli.js"},"keywords":["weibo","cli"],"license":"MIT","_id":"twei@0.2.5","dist":{"shasum":"e76b73844866467126fa8fbcea122988beefbaaf","tarball":"https://registry.npmjs.org/twei/-/twei-0.2.5.tgz","integrity":"sha512-CBpUVdG5M7qCm4gDMWcGhNlVyhd/emiMizKhLEtaYfvRmSbzco631zpVB0sL35eCNUTsyHpzX7euPnUy59N7Fw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEx5aDmD0UFJ1M3Nb3X3DhcvoBrzTB6ltN+iYgwAi6sxAiEAz+u8KIb0e1SVjwbsVvFrc9CM0H1JzgOV+cPfm/oL2KU="}]},"_npmVersion":"1.1.65","_npmUser":{"name":"justan","email":"ckr189@gmail.com"},"maintainers":[{"name":"justan","email":"ckr189@gmail.com"}]},"0.2.6":{"name":"twei","description":"a weibo cli tool","author":{"name":"justan","url":"http://blog.whosemind.net"},"version":"0.2.6","repository":{"type":"git","url":"https://github.com/justan/twei.git"},"main":"index.js","scripts":{"test":"mocha"},"engines":{"node":">=0.6.7"},"dependencies":{"request":">=2.0","tabtab":"~ 0.0.2","ini":">=1.0"},"devDependencies":{"mocha":">=1.0","chai":">=1.0"},"bin":{"twei":"lib/twei_cli.js"},"keywords":["weibo","cli"],"license":"MIT","_id":"twei@0.2.6","dist":{"shasum":"6e9b8d97b21e4a4ebd7fbde4dd3ac5981adb76b4","tarball":"https://registry.npmjs.org/twei/-/twei-0.2.6.tgz","integrity":"sha512-Yq+60wt++E+QyqfHsCKDSCXVAduAzV3ZMYCx51pucrF6Mn6uPOR4Di9VINN1in0pLaWMwmCTzbGhcJ6wCJw4MQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDA6r2s0XF+iysiHBe2DyXprbMEXhRtnedVudVDY4aOxQIgeBhI0P47fdjtksnxp+rO6BkrUASNLy8CbtUMK4Zx2ZM="}]},"_npmVersion":"1.1.65","_npmUser":{"name":"justan","email":"ckr189@gmail.com"},"maintainers":[{"name":"justan","email":"ckr189@gmail.com"}]},"0.2.7":{"name":"twei","description":"a weibo cli tool","author":{"name":"justan","url":"http://blog.whosemind.net"},"version":"0.2.7","repository":{"type":"git","url":"https://github.com/justan/twei.git"},"main":"index.js","scripts":{"test":"mocha"},"engines":{"node":">=0.6.7"},"dependencies":{"request":">=2.0","tabtab":"~ 0.0.2","ini":">=1.0"},"devDependencies":{"mocha":">=1.0","chai":">=1.0"},"bin":{"twei":"lib/twei_cli.js"},"keywords":["weibo","cli"],"license":"MIT","bugs":{"url":"https://github.com/justan/twei/issues"},"homepage":"https://github.com/justan/twei","_id":"twei@0.2.7","dist":{"shasum":"3fbc8a2770292be8955874c1eb5c75e2b138016f","tarball":"https://registry.npmjs.org/twei/-/twei-0.2.7.tgz","integrity":"sha512-sKOuZOUUDmEmHvMFHTDgTpVW1luAX1lUdLqcx8yZNM+TAmBBdQqSKsxz9KS+PAhDUtTtNoHfcljIAFPWOEo7Lg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCkmG6LDQ0AnxYIa6VujN5hKswlO5/V57qFT+HznwvCUAIgOhg+67ePZHbi4IgaKu36qNNCfLTuDhL1r/DFk3y4T0M="}]},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"justan","email":"ckr189@gmail.com"},"maintainers":[{"name":"justan","email":"ckr189@gmail.com"}]}},"readme":"twei\n====\n\ntwei 是用 [node.js][0] 编写的微博命令行工具. 目前支持新浪微博的查看与发送.\n\n## 环境\n\ntwei 适用于所有可运行 node.js 的环境, 包括 _windows, linux, mac os, cygwin_ 等.\n\n## 安装\n\n  1. 安装 [node.js][1]\n  2. 在命令行中: `npm install -g twei`\n  3. `twei --version`\n  \n使用最新的开发版本: \n\n  1. `git clone https://github.com/justan/twei.git`\n  2. `cd twei && npm link`\n  3. `twei --version`\n  \n## 使用\n\n```\n  符号说明: \n    微博用户名: {{username}}\n    微博 id: {{sid}}\n    微博评论 id: {{cid}}\n    评论内容: {{comment}}\n    微博内容: {{status}}\n``` \n  \n  - 查看提醒: `twei remind`\n  - 更新微博\n  \n    - 发微博: `twei update 雨一直下个不停`\n    - 发带网络图片的微博: `twei update 雨一直下个不停 -i http://example/example.png`\n    - 发带本地图片的微博: `twei update 雨一直下个不停 -i ./example.png`\n    - 转发微博: `twei repost {{sid}} {{status}}`\n    - 转发并评论: `twei rt {{sid}} {{status}}`\n    \n  - timeline\n  \n    - 查看收到的微博: `twei timeline`\n    - 查看自己的微博: `twei timeline.user`\n    - 查看指定用户的微博: `twei timeline.user {{username}}`\n    - 查看@你的微博: `twei timeline.mentions`\n    \n  - 查看用户信息: `twei user {{username}}`\n  - 查看指定用户的粉丝: `twei followers {{username}}`\n  - 查看 follow 哪些人: `twei friends {{username}}`\n  - follow 某人: `twei follow {{username}}`\n  - 评论\n  \n    - 查看@你的评论: `twei comments.mentions`\n    - 查看你发出评论: `twei comments.by_me`\n    - 查看给你的评论: `twei comments.to_me`\n    - 查看某条微博的评论: `twei comments {{sid}}`\n    - 评论微博: `twei comment {{sid}} {{comment}}`\n    - 删除评论: `twei comment.remove {{sid}}`\n    - 回复评论: `twei comment.reply {{sid}} {{cid}} {{comment}}`\n  \n  - 帮助\n    \n    - 查看 `execute` 的帮助内容: `twei help execute` or `twei execute -h`\n    - 查看新浪微博 api 文档:\n      \n      - `twei help remind`\n      - `twei help timeline`\n      - `twei help whois`\n      \n### 进阶使用\n\n  通过管道 twei 可以方便的借用 *nix 其他字符处理程序(诸如: grep xargs cut 等)的强大功能. 如: \n  \n  - 用 less 查看微博列表: `twei timeline --count 100 | less -R`\n  - 查看未读微博: `twei remind --filter status | xargs twei timeline --count`\n  - unfollow 你关注列表中没有 follow 你的人: \n    `twei friends {{username}} --filter users.follow_me users.name | grep false |\n     cut -f 2 | xargs -i twei unfollow {}`\n    \n  如果你知道有意思的用法, 请告诉我 :)\n\n\n## 测试\n\n  `npm test`\n  \n## access_token\n\n  由于新浪的 [api 限制][2], 目前的 `access_token` 只有数天的有效期. `Access_token` 过期后需要\n  输入你[重新授权][6]后的新 `access_token`. \n  \n  `access_token`保存在`$HOME/.tweirc`:\n  \n  ```\n  [tsina]\n  2 access_token = 2.00V_123567abcdefg\n  ```\n  \n  由`twei`发布的微博会显示`来自twei`，如果你希望将`twei`改成你在新浪微博申请的应用的名称，只需\n  用你的应用的`access_token`替换即可。你可以在[微博API测试后台](http://open.weibo.com/tools/console)\n  看到`access_token`。\n  \n  \n\n## 自动补全\n  \n  twei 从 v0.2.3 版本后开始支持 bash 和 zsh 的自动补全功能. 该功能默认未开启. 使用方法同 [npm][10] : `twei completion >> ~/.bashrc` or `twei completion >> ~/.zshrc`\n  \n    \n## execute\n\n  相比上面的示例, twei 提供了功能更为完整的微博命令行接口 execute. 使用 execute 命令可以执行较为完整的微博 api 接口.\n  \n  Usage: `twei execute {{apistr}} {{querystring}}`\n  \n### apistr & querystring:\n\n  twei 将[新浪微博的接口][4] 转接成 group.name 的 apistr 形式. 使用 [twei api][5], 在命令行中即可直接操作微博的接口.\n  \n  querystring 是 apistr 的请求参数. querystring 可以是普通的请求字符串格式(uid=1488292340), 如果该条 api 定义了expect, querysting 可以省去请求参数头部分(前例中的 \"uid=\" 部分). 完整的 querysting 请参考新浪微博的[接口][4]\n  \n  Usage: `twei timeline.home count=2 page=2` or `twei timeline.home \"count=2&page=2\"` or `twei timeline --count 2 --page 2`, \n         `twei execute statuses.user sheepmaker count=5 page=2 feature=1` \n\n         \n## 自定义\n\n  alias 和 shower 是 twei 提供的自定义命令和样式功能. \n  \n  - [command alias][7] 可以将常用命令改写成较短的命令. \n  - 默认的 twei 只提供了有限类型的数据. 通过 shower 则可以自定义内容的显示样式. 自定义的 shower 可以通过 `--shower` 指定使用.\n    Example: `twei timeline --shower json`\n\n## 联系\n\n  如果你对 twei 有任何的建议, 可以使用 [issue][8], 或者直接联系 [@sheepmaker][9]\n  \n    \n\n[0]: http://nodejs.org/\n[1]: http://nodejs.org/#download\n[2]: http://open.weibo.com/wiki/Oauth2#.E8.BF.87.E6.9C.9F.E6.97.B6.E9.97.B4\n[4]: http://open.weibo.com/wiki/API%E6%96%87%E6%A1%A3_V2\n[5]: https://github.com/justan/twei/blob/master/lib/api/tsina.js\n[6]: https://api.weibo.com/oauth2/authorize?client_id=3811884266&redirect_uri=http%3A%2F%2Fprojects.whosemind.net%2Ftwei%2Ftsina_access_token.html&response_type=token\n[7]: https://github.com/justan/twei/blob/master/lib/user_alias/alias.example.js\n[8]: https://github.com/justan/twei/issues/new\n[9]: http://weibo.com/urmaker\n[10]: https://npmjs.org/doc/completion.html\n","maintainers":[{"name":"justan","email":"ckr189@gmail.com"}],"time":{"modified":"2022-06-28T00:01:14.034Z","created":"2012-07-26T17:03:30.618Z","0.1.0alpha":"2012-07-26T17:03:34.536Z","0.1.0":"2012-07-27T15:01:55.762Z","0.1.1":"2012-07-29T16:01:53.961Z","0.2.0":"2012-08-05T13:53:11.786Z","0.2.1":"2012-08-10T14:28:15.343Z","0.2.2":"2012-08-15T16:03:21.323Z","0.2.3":"2012-08-18T14:19:39.547Z","0.2.4":"2012-09-05T15:17:56.975Z","0.2.5":"2012-12-09T08:29:33.492Z","0.2.6":"2013-03-10T04:06:41.561Z","0.2.7":"2015-03-17T17:13:02.452Z"},"author":{"name":"justan","url":"http://blog.whosemind.net"},"repository":{"type":"git","url":"https://github.com/justan/twei.git"},"users":{"fgribreau":true},"homepage":"https://github.com/justan/twei","keywords":["weibo","cli"],"bugs":{"url":"https://github.com/justan/twei/issues"},"license":"MIT","readmeFilename":"README.md"}