From def0d19e66b78eb17de06986750e6b0ae2445cc3 Mon Sep 17 00:00:00 2001 From: Luk Date: Fri, 23 Feb 2024 13:26:32 +0800 Subject: [PATCH] u --- envar-tool.js | 4 ++++ 1 file changed, 4 insertions(+) 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: {} }