>ω< 基于node的颜文字生成工具

2013-07-31 01:34:09 +08:00
 turing
我又闲的蛋疼了: https://github.com/turingou/o3o

功能就是,根据情绪种类返回颜文字给你。。

$ npm install o3o

````
var o3o = require('o3o');

console.log(o3o.fetch('smile')); // will output (●'◡'●)ノ♥
console.log(o3o.fetch('cry')); // will output π__π
````
7156 次点击
所在节点    Node.js
38 条回复
panlilu
2013-07-31 01:41:24 +08:00
喜欢。。(^○^)
underone
2013-07-31 01:51:18 +08:00
(⊙﹏⊙)
turing
2013-07-31 01:52:29 +08:00
爱你!(╭ ̄3 ̄)╭♡

0.0.2 版本,添加命令行支持。。直接 $ o3o smile 就可以生成 ^∀^ 哦

欢迎 star && fork && PR 添加新表情啊!!
Showfom
2013-07-31 02:50:27 +08:00
(╭ ̄3 ̄)╭♡ 支持楼主
coolicer
2013-07-31 08:35:48 +08:00
O_0 不错哦。
turing
2013-07-31 14:02:49 +08:00
- 0.0.4 感谢 sivaGao 同学的PR!加入了超过1000个新颜文字表情!支持按tag搜索哦~
alai
2013-07-31 14:12:48 +08:00
how to use tag?
otakustay
2013-07-31 14:34:21 +08:00
点赞( ̄ε ̄@)

是否可以增加o3o help输出可用的表情列表,每次去github上翻列表挺累。另外加个node-clipboard模块,o3o smile -copy之类自动复制到clipboard?
turing
2013-07-31 14:35:42 +08:00
@alai

比如可以这样匹配类型:

o3o.fetch('confuse') ——> ・ヘ・?

也可以这样:

o3o.fetch('困惑') ——> ・ヘ・?
luikore
2013-07-31 14:36:56 +08:00
夏洛特很传神: (☽ ̍̑⚈͜ ̍̑☾)
alai
2013-07-31 14:37:25 +08:00
支持@otakustay
turing
2013-07-31 14:41:40 +08:00
@otakustay 没问题,这就加~
turing
2013-07-31 15:04:37 +08:00
@alai @otakustay

- 0.0.5 : 已经支持ls 所有可选的类别

$ o3o ls

或者使用API

o3o.available()
infong
2013-07-31 15:09:29 +08:00
赞啊~继续提供颜文字素材,233333~

http://www.douban.com/note/207197491/
turing
2013-07-31 15:12:01 +08:00
贴个图:

ufo22940268
2013-07-31 15:33:19 +08:00
想问一下lz,做这个大概花了多少时间
turing
2013-07-31 15:40:49 +08:00
@ufo22940268 大概一个小时昨晚。。
zythum
2013-07-31 16:16:04 +08:00
@turing 大多时间应该花在收集颜文字上了
breeswish
2013-07-31 16:44:58 +08:00
求加入复制到剪贴板功能 =u=
turing
2013-07-31 16:46:42 +08:00
@zythum 恩。。写文档啊,写测试用例啊。。找表情啊之类的。。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/77488

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX