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

用 node 做了一个 caniuse.com 的命令行工具

  •  1
     
  •   skyler · 2015-03-20 14:25:35 +08:00 · 2865 次点击
    这是一个创建于 3327 天前的主题,其中的信息可能已经有所发展或是发生改变。

    利用的数据是caniuse.com 作者开源在github上的,然后自己用node写了个小Server 放在 京东云擎上(为什么是京东云?因为免费~!)。

    安装方式

    $ npm install yong -g
    

    使用方式

    $  yong border-radius
    

    支持传参

    $  yong border-radius -b ie
    


    参数主要有 「ie」「chrome」「firefox」...

    github 地址: https://github.com/skylerzhang/yong

    5 条回复    2015-03-20 16:41:20 +08:00
    oott123
        1
    oott123  
       2015-03-20 16:07:27 +08:00   ❤️ 1
    感觉展示形式还是可以优化吧……
    看这样的终端输出结果有点累……
    chunyang
        2
    chunyang  
       2015-03-20 16:10:09 +08:00
    README.md 上的第一个链接写错了
    skyler
        3
    skyler  
    OP
       2015-03-20 16:24:41 +08:00
    @oott123 嗯,准备弄成表格形式的
    skyler
        4
    skyler  
    OP
       2015-03-20 16:26:15 +08:00
    @chunyang 嗯 谢谢提醒
    hkongm
        5
    hkongm  
       2015-03-20 16:41:20 +08:00   ❤️ 1
    好!支持!watch一下
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3125 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 14:06 · PVG 22:06 · LAX 07:06 · JFK 10:06
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.