# 2019.10.23 今天是每日时报陪你的第 265 天

[发布] 当地时间 22 日,Google 发布了适用于 Windows、Mac 与 Linux 的 Chrome 78.0.3904.70,意味着稳定版 v78 到来;新版我觉得最大的亮点是文件系统,这给浏览器又能带来很多机会,我的猜想如 ServerLess 云构建,可以支持本地化:https://www.oschina.net/news/110768/chrome-78-released (opens new window)

[文章] 这可能是最通俗的 React Fiber 打开方式:https://juejin.im/post/5dadc6045188255a270a0f85 (opens new window)

[类库] resolve-cwd 可以从当面目录中,执行 path.resolve。具体的场景是,开发 CLI 工具时,在「项目」中自定义一些约定的配置文件,这时候就要从 cwd 的 resolve 下取:https://github.com/sindresorhus/resolve-cwd (opens new window)

[类库] 通过这个库,可以很方便的取到用户的宿主目录:https://github.com/sindresorhus/user-home (opens new window)

# 配图 - Google 发布 78

# 配图 - React Fiber

# 示例 - resolve-cwd

const resolveCwd = require('resolve-cwd');

console.log(__dirname);
//=> '/Users/sindresorhus/rainbow'

console.log(process.cwd());
//=> '/Users/sindresorhus/unicorn'

console.log(resolveCwd('./foo'));
//=> '/Users/sindresorhus/unicorn/foo.js'

# 示例 - user-home

cosnt userHome = require('user-home');

console.log(userHome);
//=> '/Users/sindresorhus'
Last Updated: 10/23/2019, 10:39:09 AM