[前端] 每日时报 - 2019.07.15

2019-07-15 18:16:20 +08:00
 wubaiqing

[前端] 每日时报 - 2019.07.15

[文章] 《腾讯九年,我毕业了》从行业外的人身上学到的最多;无知和弱小不是生存的障碍,傲慢才是:https://yuguo.us/weblog/leaving-tencent/?from=timeline&isappinstalled=0

[类库] minimatch 类似于 glob 函数,可以匹配文件或者目录是否符合要求:https://github.com/isaacs/minimatch

[类库] RxJS 是 Promise 的超集,集合了观察者模式、迭代器模式和使用集合的函数;解决了一旦调用了 resolve 或者是 reject 之后便返回的问题:https://github.com/reactivex/rxjs

[工具] verdaccio 可以快速的搭建出来一套 NPM 私有云,支持 Docker 一键部署,使用于公司级产品,但不能发布到 NpmJS 的情况:https://github.com/verdaccio/verdaccio

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

示例 - minimatch

var minimatch = require("minimatch")

minimatch("bar.foo", "*.foo") // true!
minimatch("bar.foo", "*.bar") // false!
minimatch("bar.foo", "*.+(bar|foo)", { debug: true }) // true, and noisy!

示例 - RxJS

import { range } from 'rxjs';
import { map, filter } from 'rxjs/operators';

range(1, 200).pipe(
  filter(x => x % 2 === 1),
  map(x => x + x)
).subscribe(x => console.log(x));

今日图 - 还原度 100%

1088 次点击
所在节点    分享发现
0 条回复

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

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

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

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

© 2021 V2EX