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

[前端] 每日时报 - 2019.07.22

  •  
  •   wubaiqing · 2019-07-22 13:55:11 +08:00 · 358 次点击
    这是一个创建于 1731 天前的主题,其中的信息可能已经有所发展或是发生改变。

    [前端] 每日时报 - 2019.07.22

    [视频] 张维为教授:防火墙是中国政府的智慧。可以翻墙,但是墙必须要有:https://www.youtube.com/watch?v=YtxhWwpcwD0

    [文章] 使用 TS+React 开发 Chrome 扩展:https://medium.com/@th.guibert/create-a-chrome-extension-using-react-and-typescript-50e94e14320c

    [类库] npm-run-all 用于并行或顺序执行多个 NPM 脚本的工具:https://github.com/mysticatea/npm-run-all

    [类库] decamelize 可以把驼峰字符串,转换成横线分割符的类库,看一下代码示例就明白了:https://github.com/sindresorhus/decamelize

    [类库] sort-package-json 可以生成一个 package.json 的文件,默认是按照 NPM 标准顺序输出,可以用于动态生成脚手架的项目配置:https://github.com/keithamus/sort-package-json

    [资源] 最全中华古诗词数据库,唐宋两朝近一万四千古诗人,接近 5.5 万首唐诗加 26 万宋诗。两宋时期 1564 位词人,21050 首词,还有小程序https://github.com/chinese-poetry/chinese-poetry

    GitHub: https://github.com/wubaiqing/zaobao

    示例 - npm-run-all

    {
      // ...
      dependencies: {
        "start": "npm run postinstall:electron && npm-run-all -p ng:serve electron:serve",
      },
    }
    

    示例 - sort-package-json

    JSON.stringify(sortPackageJson({
      dependencies: {},
      version: '1.0.0',
      keywords: ['thing'],
      name: 'foo',
    }), null, 2)
    /* string:
    {
      "name": "foo",
      "version": "1.0.0",
      "keywords": [
        "thing"
      ],
      "dependencies": {}
    }
    */
    

    示例 - decamelize

    const decamelize = require('decamelize');
    
    decamelize('unicornRainbow');
    //=> 'unicorn_rainbow'
    
    decamelize('unicornRainbow', '-');
    //=> 'unicorn-rainbow'
    

    今日图 - 自我递归

    2 条回复    2019-12-26 18:14:47 +08:00
    Zink99
        1
    Zink99  
       2019-08-01 14:25:47 +08:00
    您好,请问停止更新了吗?
    wubaiqing
        2
    wubaiqing  
    OP
       2019-12-26 18:14:47 +08:00
    @Zink99 没有啊。一直在更新,请关注 GitHub。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3885 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 05:06 · PVG 13:06 · LAX 22:06 · JFK 01:06
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.