V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
turing
V2EX  ›  Node.js

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

  •  
  •   turing · 2013-07-31 01:34:09 +08:00 · 7147 次点击
    这是一个创建于 3922 天前的主题,其中的信息可能已经有所发展或是发生改变。
    我又闲的蛋疼了: 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 π__π
    ````
    38 条回复    2015-11-07 21:53:06 +08:00
    panlilu
        1
    panlilu  
       2013-07-31 01:41:24 +08:00 via iPad
    喜欢。。(^○^)
    underone
        2
    underone  
       2013-07-31 01:51:18 +08:00
    (⊙﹏⊙)
    turing
        3
    turing  
    OP
       2013-07-31 01:52:29 +08:00
    爱你!(╭ ̄3 ̄)╭♡

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

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

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

    比如可以这样匹配类型:

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

    也可以这样:

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

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

    $ o3o ls

    或者使用API

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

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

    ufo22940268
        16
    ufo22940268  
       2013-07-31 15:33:19 +08:00
    想问一下lz,做这个大概花了多少时间
    turing
        17
    turing  
    OP
       2013-07-31 15:40:49 +08:00
    @ufo22940268 大概一个小时昨晚。。
    zythum
        18
    zythum  
       2013-07-31 16:16:04 +08:00
    @turing 大多时间应该花在收集颜文字上了
    breeswish
        19
    breeswish  
       2013-07-31 16:44:58 +08:00
    求加入复制到剪贴板功能 =u=
    turing
        20
    turing  
    OP
       2013-07-31 16:46:42 +08:00
    @zythum 恩。。写文档啊,写测试用例啊。。找表情啊之类的。。
    turing
        21
    turing  
    OP
       2013-07-31 16:58:23 +08:00
    @breeswish 正在 CLI 里加这个功能 ~
    renyi315
        22
    renyi315  
       2013-07-31 22:50:11 +08:00
    大爱颜文字,多谢,我会持续关注这个项目的。
    lucifr
        23
    lucifr  
       2013-08-01 01:42:39 +08:00   ❤️ 2
    大爱~ (*°∀°)=3

    写了个 Alfred 2 的 workflow,方便查找复制:

    http://lucifr.com/2013/08/01/o3o-workflow-for-alfred/
    panlilu
        24
    panlilu  
       2013-08-01 01:59:07 +08:00
    @lucifr
    turing
        25
    turing  
    OP
       2013-08-01 02:09:04 +08:00
    @lucifr 超级赞!\(^0^)/

    已经把地址添加到 readme 的 ## rebound !
    lucifr
        26
    lucifr  
       2013-08-01 06:53:15 +08:00
    @panlilu

    @turing

    ヽ(∀゜ )人( ゜∀)ノ
    Hysteria
        27
    Hysteria  
       2013-08-08 20:43:16 +08:00
    这个太赞啦,必须支持。
    lyuehh
        28
    lyuehh  
       2013-08-08 21:11:17 +08:00
    大爱啊~~
    itfanr
        29
    itfanr  
       2013-08-12 23:35:01 +08:00
    npm install o3o
    为什么没有写网址就能安装?o3o这个关键词在哪里注册了吗?
    fanghui
        30
    fanghui  
       2013-08-12 23:38:03 +08:00
    支持楼主
    baitouwei
        31
    baitouwei  
       2013-08-13 09:38:53 +08:00
    赞一个
    PotatoBrother
        32
    PotatoBrother  
       2013-08-13 09:41:29 +08:00 via iPhone
    好东西顶一个╰( ̄ω ̄o=)>
    chshouyu
        33
    chshouyu  
       2013-08-13 10:09:25 +08:00
    不错不错~
    kelvinli
        34
    kelvinli  
       2013-08-13 12:08:36 +08:00
    (‘∀’●)♡ 哎呦 不错哦
    Zuckonit
        35
    Zuckonit  
       2013-08-22 12:12:38 +08:00
    好玩,哈哈。用了下你的yan.json, 写了py版本的https://github.com/Zuckonit/pyo3o
    turing
        36
    turing  
    OP
       2013-08-22 12:32:55 +08:00
    @Zuckonit 感谢!我加到rebound里哈哈~
    Zuckonit
        37
    Zuckonit  
       2013-08-22 13:27:18 +08:00
    @turing 改了下代码,保持跟你的API一致, 有空再加一个粘贴版。
    callmewhy
        38
    callmewhy  
       2015-11-07 21:53:06 +08:00
    来挖坟了。。。感谢楼主,已经在微信公众账号里用上了~
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3062 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 11:06 · PVG 19:06 · LAX 04:06 · JFK 07:06
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.