# 2020.6.15 今天是每日时报陪伴您的第 348 天

[文章] 《揭秘:支付宝小程序 V8 Worker 技术演进》:https://mp.weixin.qq.com/s/QS0QT7TIcEzZhR6asCOecg (opens new window)

[文章] 政采云团队写的,《基于 Web 端的人脸识别身份验证》他们团队的文章质量一项很高:https://juejin.im/post/5ee62c47f265da76c26e81df (opens new window)

[文章] 尤大写设计,尤雨溪:重头来过的 Vue 3 带来了什么?https://mp.weixin.qq.com/s/MMHzX4kzNLSRrSh-Yguwrg (opens new window)

[文章] 大厂如何开发和部署前端代码?淘宝 8 年案例解读 https://mp.weixin.qq.com/s/mQYfkx8m7b4oirvRrbrmqQ (opens new window)

[类库] father 是 Umi 团队推出的打包工具,它对 Lerna 支持的好:https://github.com/umijs/father/tree/2.x (opens new window)

[类库] shelljs 可以在 Node 环境中执行 Shell 命令:https://www.npmjs.com/package/shelljs (opens new window)

[类库] stringify-object 可以把一个 JSON 对象转换成字符串结构,方便在 CLI 端更友好的输出:https://www.npmjs.com/package/stringify-object (opens new window)

# 示例

var shell = require("shelljs");

if (!shell.which("git")) {
  shell.echo("Sorry, this script requires git");
  shell.exit(1);
}

// Copy files to release dir
shell.rm("-rf", "out/Release");
shell.cp("-R", "stuff/", "out/Release");

# 示例

const stringifyObject = require("stringify-object");

const obj = {
  foo: "bar",
  arr: [1, 2, 3],
  nested: { hello: "world" }
};

const pretty = stringifyObject(obj, {
  indent: "  ",
  singleQuotes: false
});

console.log(pretty);
/*
{
    foo: "bar",
    arr: [
        1,
        2,
        3
    ],
    nested: {
        hello: "world"
    }
}
*/
Last Updated: 6/17/2020, 3:45:26 PM