diff --git a/envar-tool.js b/envar-tool.js index 779107d..3e93268 100644 --- a/envar-tool.js +++ b/envar-tool.js @@ -1,6 +1,10 @@ const fs = require('fs') const path = require('path') const deepmerge = require('deepmerge') +// https://github.com/jonschlinkert/assign-deep // 类似 Object.assign 直接赋值到第一个对象里。只下载2个包。assign 优选。 +// https://github.com/jonschlinkert/merge-deep // 生成一个新对象。会下载7~8个包。 +// https://github.com/TehShrike/deepmerge // 生成一个新对象。只下载1个包。 +// const deepmerge = require('@fastify/deepmerge')() // https://github.com/fastify/deepmerge // // 生成一个新对象。只下载1个包。assign优选。页面上有性能测试比较,超快。(他还有个 https://github.com/fastify/fast-json-stringify 也超快) const my = { envar: {} }