# 2019.08.26 - 今天是每日时报陪你的第 233 天

[文章] 帮助中国用户进行 Kubernetes 开发:https://github.com/AliyunContainerService/minikube (opens new window)

[文章] Chrome 浏览器的工作原理:
第一部分https://developers.google.com/web/updates/2018/09/inside-browser-part1 (opens new window)
第二部分https://developers.google.com/web/updates/2018/09/inside-browser-part2 (opens new window)

[文章] 可能是你见过最完善的微前端解决方案:https://zhuanlan.zhihu.com/p/78362028 (opens new window)

[类库] Source-Map 转 JSON 的工具:https://github.com/thlorenz/convert-source-map (opens new window)

[工具] “零宽” 长度的短网址服务:https://github.com/zws-im/zws (opens new window)

[工具] 显示 GitHub 里项目 Star 进展的工具:https://github.com/caarlos0/starcharts (opens new window)

# 配图 - “零宽” 长度的短网址服务

# 配图 - 显示 GitHub 里项目 Star 进展的工具

# 示例 - Source-Map 转 JSON 的工具

var convert = require('convert-source-map');

var json = convert
  .fromComment('//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnVpbGQvZm9vLm1pbi5qcyIsInNvdXJjZXMiOlsic3JjL2Zvby5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSIsInNvdXJjZVJvb3QiOiIvIn0=')
  .toJSON();

var modified = convert
  .fromComment('//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnVpbGQvZm9vLm1pbi5qcyIsInNvdXJjZXMiOlsic3JjL2Zvby5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSIsInNvdXJjZVJvb3QiOiIvIn0=')
  .setProperty('sources', [ 'SRC/FOO.JS' ])
  .toJSON();

console.log(json);
console.log(modified);
{"version":3,"file":"build/foo.min.js","sources":["src/foo.js"],"names":[],"mappings":"AAAA","sourceRoot":"/"}
{"version":3,"file":"build/foo.min.js","sources":["SRC/FOO.JS"],"names":[],"mappings":"AAAA","sourceRoot":"/"}

# 今日图 - 给程序员的福利

Last Updated: 8/26/2019, 1:46:43 PM