{"_id":"vmodule-webpack-plugin","_rev":"680457","name":"vmodule-webpack-plugin","description":"A virtual module webpack plug-in","dist-tags":{"latest":"2.0.5"},"maintainers":[{"name":"houzhanfeng","email":"admin@xhou.net"}],"time":{"modified":"2021-08-30T02:34:58.000Z","created":"2017-07-24T17:05:11.581Z","2.0.5":"2021-01-28T08:30:01.421Z","2.0.4":"2020-12-30T05:43:09.652Z","2.0.3":"2020-12-30T05:31:23.060Z","2.0.2":"2020-12-30T03:59:01.113Z","2.0.1":"2020-12-28T09:25:21.086Z","1.0.9":"2018-08-27T04:39:44.208Z","1.0.8":"2017-10-19T01:43:44.525Z","1.0.7":"2017-10-18T07:35:38.681Z","1.0.5":"2017-10-09T17:08:35.143Z","1.0.4":"2017-09-21T16:49:25.562Z","1.0.3":"2017-09-21T16:44:51.361Z","1.0.2":"2017-09-21T16:41:03.041Z","1.0.1":"2017-07-27T05:19:41.219Z","1.0.0":"2017-07-24T17:05:11.581Z"},"users":{},"author":{"name":"Houfeng"},"versions":{"2.0.5":{"name":"vmodule-webpack-plugin","version":"2.0.5","description":"A virtual module webpack plug-in","main":"./lib/index.js","scripts":{"test":"mocha"},"keywords":["webpack","plugin","virtual","module"],"author":{"name":"Houfeng"},"license":"MIT","dependencies":{"chokidar":"^3.4.3","md5":"^2.3.0","ntils":"^5.2.0","tslib":"^2.0.3"},"peerDependencies":{"webpack":"^5.11.0"},"devDependencies":{"@types/chokidar":"^2.1.3","@types/md5":"^2.2.1","@types/node":"^14.14.16","@types/webpack":"^4.41.25","dn-middleware-clean":"^1.0.2","dn-middleware-shell":"^1.1.1","dn-middleware-submitter":"^1.0.1","dn-middleware-version":"^1.0.4","typescript":"^4.1.3","webpack-cli":"^4.3.0"},"gitHead":"11698df5891010978f7194cce30d6e147730f855","_id":"vmodule-webpack-plugin@2.0.5","_nodeVersion":"13.14.0","_npmVersion":"6.14.4","dist":{"shasum":"430becd2ca4a6fb659ba300d5d762f450b12d671","size":3356,"noattachment":false,"key":"/vmodule-webpack-plugin/-/vmodule-webpack-plugin-2.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/vmodule-webpack-plugin/download/vmodule-webpack-plugin-2.0.5.tgz"},"_npmUser":{"name":"houzhanfeng","email":"admin@xhou.net"},"directories":{},"maintainers":[{"name":"houzhanfeng","email":"admin@xhou.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vmodule-webpack-plugin_2.0.5_1611822601241_0.9281144874368399"},"_hasShrinkwrap":false,"publish_time":1611822601421,"_cnpm_publish_time":1611822601421},"2.0.4":{"name":"vmodule-webpack-plugin","version":"2.0.4","description":"A virtual module webpack plug-in","main":"./lib/index.js","scripts":{"test":"mocha"},"keywords":["webpack","plugin","virtual","module"],"author":{"name":"Houfeng"},"license":"MIT","dependencies":{"chokidar":"^3.4.3","md5":"^2.3.0","ntils":"^5.2.0","tslib":"^2.0.3","webpack":"^5.11.0"},"devDependencies":{"@types/chokidar":"^2.1.3","@types/md5":"^2.2.1","@types/node":"^14.14.16","@types/webpack":"^4.41.25","dn-middleware-clean":"^1.0.2","dn-middleware-shell":"^1.1.1","dn-middleware-submitter":"^1.0.1","dn-middleware-version":"^1.0.4","typescript":"^4.1.3","webpack-cli":"^4.3.0"},"gitHead":"babc0a01f9eaba62d82a3ed8999115dc131a3081","_id":"vmodule-webpack-plugin@2.0.4","_nodeVersion":"13.14.0","_npmVersion":"6.14.4","dist":{"shasum":"83dc2f81092c6a0b16703b2a04d374c5f79a1553","size":3347,"noattachment":false,"key":"/vmodule-webpack-plugin/-/vmodule-webpack-plugin-2.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/vmodule-webpack-plugin/download/vmodule-webpack-plugin-2.0.4.tgz"},"_npmUser":{"name":"houzhanfeng","email":"admin@xhou.net"},"directories":{},"maintainers":[{"name":"houzhanfeng","email":"admin@xhou.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vmodule-webpack-plugin_2.0.4_1609306989485_0.7270209897594271"},"_hasShrinkwrap":false,"publish_time":1609306989652,"_cnpm_publish_time":1609306989652},"2.0.3":{"name":"vmodule-webpack-plugin","version":"2.0.3","description":"A virtual module webpack plug-in","main":"./lib/index.js","scripts":{"test":"mocha"},"keywords":["webpack","plugin","virtual","module"],"author":{"name":"Houfeng"},"license":"MIT","dependencies":{"chokidar":"^3.4.3","md5":"^2.3.0","ntils":"^5.2.0","tslib":"^2.0.3","webpack":"^5.11.0"},"devDependencies":{"@types/chokidar":"^2.1.3","@types/md5":"^2.2.1","@types/node":"^14.14.16","@types/webpack":"^4.41.25","dn-middleware-clean":"^1.0.2","dn-middleware-shell":"^1.1.1","dn-middleware-submitter":"^1.0.1","dn-middleware-version":"^1.0.4","typescript":"^4.1.3","webpack-cli":"^4.3.0"},"gitHead":"fede3c6bc61de12dac0ed4f7a067b0267499e2ef","_id":"vmodule-webpack-plugin@2.0.3","_nodeVersion":"13.14.0","_npmVersion":"6.14.4","dist":{"shasum":"2c4824074a235f94e0ac7a1866693d22956e702f","size":3404,"noattachment":false,"key":"/vmodule-webpack-plugin/-/vmodule-webpack-plugin-2.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/vmodule-webpack-plugin/download/vmodule-webpack-plugin-2.0.3.tgz"},"_npmUser":{"name":"houzhanfeng","email":"admin@xhou.net"},"directories":{},"maintainers":[{"name":"houzhanfeng","email":"admin@xhou.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vmodule-webpack-plugin_2.0.3_1609306282915_0.3471107670241378"},"_hasShrinkwrap":false,"publish_time":1609306283060,"_cnpm_publish_time":1609306283060},"2.0.2":{"name":"vmodule-webpack-plugin","version":"2.0.2","description":"A virtual module webpack plug-in","main":"./lib/index.js","scripts":{"test":"mocha"},"keywords":["webpack","plugin","virtual","module"],"author":{"name":"Houfeng"},"license":"MIT","dependencies":{"chokidar":"^3.4.3","md5":"^2.3.0","ntils":"^5.2.0","tslib":"^2.0.3","webpack":"^5.11.0"},"devDependencies":{"@types/chokidar":"^2.1.3","@types/md5":"^2.2.1","@types/node":"^14.14.16","@types/webpack":"^4.41.25","dn-middleware-clean":"^1.0.2","dn-middleware-shell":"^1.1.1","dn-middleware-submitter":"^1.0.1","dn-middleware-version":"^1.0.4","typescript":"^4.1.3","webpack-cli":"^4.3.0"},"gitHead":"8be988a6422312c13636fb22634643401d4f1a71","_id":"vmodule-webpack-plugin@2.0.2","_nodeVersion":"13.14.0","_npmVersion":"6.14.4","dist":{"shasum":"bca64e6b807890cfd1b009cfaad65a68a6b1b3ea","size":3436,"noattachment":false,"key":"/vmodule-webpack-plugin/-/vmodule-webpack-plugin-2.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/vmodule-webpack-plugin/download/vmodule-webpack-plugin-2.0.2.tgz"},"_npmUser":{"name":"houzhanfeng","email":"admin@xhou.net"},"directories":{},"maintainers":[{"name":"houzhanfeng","email":"admin@xhou.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vmodule-webpack-plugin_2.0.2_1609300740946_0.8704040314024457"},"_hasShrinkwrap":false,"publish_time":1609300741113,"_cnpm_publish_time":1609300741113},"2.0.1":{"name":"vmodule-webpack-plugin","version":"2.0.1","description":"A virtual module webpack plug-in","main":"./lib/index.js","scripts":{"test":"mocha"},"keywords":["webpack","plugin","virtual","module"],"author":{"name":"Houfeng"},"license":"MIT","dependencies":{"chokidar":"^3.4.3","md5":"^2.3.0","ntils":"^5.2.0","tslib":"^2.0.3","webpack":"^5.11.0"},"devDependencies":{"@types/chokidar":"^2.1.3","@types/md5":"^2.2.1","@types/node":"^14.14.16","@types/webpack":"^4.41.25","dn-middleware-clean":"^1.0.2","dn-middleware-shell":"^1.1.1","dn-middleware-submitter":"^1.0.1","dn-middleware-version":"^1.0.4","typescript":"^4.1.3","webpack-cli":"^4.3.0"},"gitHead":"ac416a2ac909fd5ca1266c9c4120059c72d69316","_id":"vmodule-webpack-plugin@2.0.1","_nodeVersion":"13.14.0","_npmVersion":"6.14.4","dist":{"shasum":"70ba18e018c4f8f71d2d554a654e03ca62a4a302","size":3135,"noattachment":false,"key":"/vmodule-webpack-plugin/-/vmodule-webpack-plugin-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/vmodule-webpack-plugin/download/vmodule-webpack-plugin-2.0.1.tgz"},"_npmUser":{"name":"houzhanfeng","email":"admin@xhou.net"},"directories":{},"maintainers":[{"name":"houzhanfeng","email":"admin@xhou.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vmodule-webpack-plugin_2.0.1_1609147520946_0.5433706784744767"},"_hasShrinkwrap":false,"publish_time":1609147521086,"_cnpm_publish_time":1609147521086},"1.0.9":{"name":"vmodule-webpack-plugin","version":"1.0.9","description":"A virtual module webpack plug-in","main":"./lib/index.js","scripts":{"test":"mocha"},"keywords":["webpack","plugin","virtual","module"],"author":{"name":"Houfeng"},"license":"MIT","dependencies":{"chokidar":"^1.7.0","md5":"^2.2.1","ntils":"^2.1.2"},"gitHead":"7c4237c20fb44386653b9a7acd1027b03a8ca721","_id":"vmodule-webpack-plugin@1.0.9","_npmVersion":"6.3.0","_nodeVersion":"8.2.1","_npmUser":{"name":"houzhanfeng","email":"admin@xhou.net"},"dist":{"shasum":"ac05b102513f6d1187afee834dcdb7fbe3f6f170","size":3606,"noattachment":false,"key":"/vmodule-webpack-plugin/-/vmodule-webpack-plugin-1.0.9.tgz","tarball":"http://registry.cnpm.dingdandao.com/vmodule-webpack-plugin/download/vmodule-webpack-plugin-1.0.9.tgz"},"maintainers":[{"name":"houzhanfeng","email":"admin@xhou.net"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vmodule-webpack-plugin_1.0.9_1535344784104_0.46618057848274286"},"_hasShrinkwrap":false,"publish_time":1535344784208,"_cnpm_publish_time":1535344784208},"1.0.8":{"name":"vmodule-webpack-plugin","version":"1.0.8","description":"A virtual module webpack plug-in","main":"./lib/index.js","scripts":{"test":"mocha"},"keywords":["webpack","plugin","virtual","module"],"author":{"name":"Houfeng"},"license":"MIT","dependencies":{"chokidar":"^1.7.0","md5":"^2.2.1","ntils":"^2.1.2"},"gitHead":"5a843e6059ea47a74273967ca1de3ad6f09cd4f4","_id":"vmodule-webpack-plugin@1.0.8","_npmVersion":"5.4.2","_nodeVersion":"8.2.1","_npmUser":{"name":"houzhanfeng","email":"admin@xhou.net"},"dist":{"shasum":"86fd393460aadbaa1e4eae64749992b83abb8fa0","size":4330,"noattachment":false,"key":"/vmodule-webpack-plugin/-/vmodule-webpack-plugin-1.0.8.tgz","tarball":"http://registry.cnpm.dingdandao.com/vmodule-webpack-plugin/download/vmodule-webpack-plugin-1.0.8.tgz"},"maintainers":[{"name":"houzhanfeng","email":"admin@xhou.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vmodule-webpack-plugin-1.0.8.tgz_1508377424374_0.22859384049661458"},"directories":{},"publish_time":1508377424525,"_hasShrinkwrap":false,"_cnpm_publish_time":1508377424525},"1.0.7":{"name":"vmodule-webpack-plugin","version":"1.0.7","description":"A virtual module webpack plug-in","main":"./lib/index.js","scripts":{"test":"mocha"},"keywords":["webpack","plugin","virtual","module"],"author":{"name":"Houfeng"},"license":"MIT","dependencies":{"chokidar":"^1.7.0","md5":"^2.2.1","ntils":"^2.1.2"},"gitHead":"228ced8a3efecc0a82df9eae283574940ce10633","_id":"vmodule-webpack-plugin@1.0.7","_npmVersion":"5.4.2","_nodeVersion":"8.2.1","_npmUser":{"name":"houzhanfeng","email":"admin@xhou.net"},"dist":{"shasum":"85a4809c92e2e8e4728779c148f7d0e596cb9b16","size":4327,"noattachment":false,"key":"/vmodule-webpack-plugin/-/vmodule-webpack-plugin-1.0.7.tgz","tarball":"http://registry.cnpm.dingdandao.com/vmodule-webpack-plugin/download/vmodule-webpack-plugin-1.0.7.tgz"},"maintainers":[{"name":"houzhanfeng","email":"admin@xhou.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vmodule-webpack-plugin-1.0.7.tgz_1508312138603_0.09144208463840187"},"directories":{},"publish_time":1508312138681,"_hasShrinkwrap":false,"_cnpm_publish_time":1508312138681},"1.0.5":{"name":"vmodule-webpack-plugin","version":"1.0.5","description":"A virtual module webpack plug-in","main":"./lib/index.js","scripts":{"test":"mocha"},"keywords":["webpack","plugin","virtual","module"],"author":{"name":"Houfeng"},"license":"MIT","dependencies":{"md5":"^2.2.1","ntils":"^2.1.2"},"gitHead":"30c1050fe4341a55ddc801e0429a6a034db49a83","_id":"vmodule-webpack-plugin@1.0.5","_npmVersion":"5.4.2","_nodeVersion":"8.2.1","_npmUser":{"name":"houzhanfeng","email":"admin@xhou.net"},"dist":{"shasum":"52e8c5e4d146cf8b3f72b79f2d057d8d9da9f251","size":3337,"noattachment":false,"key":"/vmodule-webpack-plugin/-/vmodule-webpack-plugin-1.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/vmodule-webpack-plugin/download/vmodule-webpack-plugin-1.0.5.tgz"},"maintainers":[{"name":"houzhanfeng","email":"admin@xhou.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vmodule-webpack-plugin-1.0.5.tgz_1507568915066_0.05919390358030796"},"directories":{},"publish_time":1507568915143,"_hasShrinkwrap":false,"_cnpm_publish_time":1507568915143},"1.0.4":{"name":"vmodule-webpack-plugin","version":"1.0.4","description":"A virtual module webpack plug-in","main":"./lib/index.js","scripts":{"test":"mocha"},"keywords":["webpack","plugin","virtual","module"],"author":{"name":"Houfeng"},"license":"MIT","dependencies":{"ntils":"^2.1.2"},"gitHead":"9232f9758cfbcec81140bfc6ac6f52661ae6d1ab","_id":"vmodule-webpack-plugin@1.0.4","_npmVersion":"5.3.0","_nodeVersion":"8.2.1","_npmUser":{"name":"houzhanfeng","email":"admin@xhou.net"},"dist":{"shasum":"f8829e0460a528a40abb00ac77a686438be0376c","size":3370,"noattachment":false,"key":"/vmodule-webpack-plugin/-/vmodule-webpack-plugin-1.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/vmodule-webpack-plugin/download/vmodule-webpack-plugin-1.0.4.tgz"},"maintainers":[{"name":"houzhanfeng","email":"admin@xhou.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vmodule-webpack-plugin-1.0.4.tgz_1506012565261_0.36428880714811385"},"directories":{},"publish_time":1506012565562,"_cnpm_publish_time":1506012565562,"_hasShrinkwrap":false},"1.0.3":{"name":"vmodule-webpack-plugin","version":"1.0.3","description":"A virtual module webpack plug-in","main":"./lib/index.js","scripts":{"test":"mocha"},"keywords":["webpack","plugin","virtual","module"],"author":{"name":"Houfeng"},"license":"MIT","dependencies":{"ntils":"^2.1.2"},"gitHead":"2c05901dce081259a30ec704a096efc8c70d2535","_id":"vmodule-webpack-plugin@1.0.3","_npmVersion":"5.3.0","_nodeVersion":"8.2.1","_npmUser":{"name":"houzhanfeng","email":"admin@xhou.net"},"dist":{"shasum":"dec7dd9a79dc74232a34ecec429b8b3b03750ebb","size":3376,"noattachment":false,"key":"/vmodule-webpack-plugin/-/vmodule-webpack-plugin-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/vmodule-webpack-plugin/download/vmodule-webpack-plugin-1.0.3.tgz"},"maintainers":[{"name":"houzhanfeng","email":"admin@xhou.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vmodule-webpack-plugin-1.0.3.tgz_1506012291260_0.6678982162848115"},"directories":{},"publish_time":1506012291361,"_hasShrinkwrap":false,"_cnpm_publish_time":1506012291361},"1.0.2":{"name":"vmodule-webpack-plugin","version":"1.0.2","description":"A virtual module webpack plug-in","main":"./lib/index.js","scripts":{"test":"mocha"},"keywords":["webpack","plugin","virtual","module"],"author":{"name":"Houfeng"},"license":"MIT","dependencies":{"ntils":"^2.1.2"},"gitHead":"8bd06a85e9d2bc7f9a19415a92ad01c878ff4ef9","_id":"vmodule-webpack-plugin@1.0.2","_npmVersion":"5.3.0","_nodeVersion":"8.2.1","_npmUser":{"name":"houzhanfeng","email":"admin@xhou.net"},"dist":{"shasum":"69f201668c0da7a6d5d11b4d5b6dfc853b58d479","size":3369,"noattachment":false,"key":"/vmodule-webpack-plugin/-/vmodule-webpack-plugin-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/vmodule-webpack-plugin/download/vmodule-webpack-plugin-1.0.2.tgz"},"maintainers":[{"name":"houzhanfeng","email":"admin@xhou.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vmodule-webpack-plugin-1.0.2.tgz_1506012062930_0.14638277632184327"},"directories":{},"publish_time":1506012063041,"_cnpm_publish_time":1506012063041,"_hasShrinkwrap":false},"1.0.1":{"name":"vmodule-webpack-plugin","version":"1.0.1","description":"A virtual module webpack plug-in","main":"./lib/plugin.js","scripts":{"test":"mocha"},"keywords":["webpack","plugin","virtual","module"],"author":{"name":"Houfeng"},"license":"MIT","dependencies":{"ntils":"^2.1.2"},"gitHead":"64e63c501bdfdcc5d13b8b942f00738855d19d94","_id":"vmodule-webpack-plugin@1.0.1","_npmVersion":"5.3.0","_nodeVersion":"8.2.1","_npmUser":{"name":"houzhanfeng","email":"admin@xhou.net"},"dist":{"shasum":"6f1172acb51a25ea8a26744fcf4c64f3dda95dbc","size":1610,"noattachment":false,"key":"/vmodule-webpack-plugin/-/vmodule-webpack-plugin-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/vmodule-webpack-plugin/download/vmodule-webpack-plugin-1.0.1.tgz"},"maintainers":[{"name":"houzhanfeng","email":"admin@xhou.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vmodule-webpack-plugin-1.0.1.tgz_1501132781124_0.478266722522676"},"directories":{},"publish_time":1501132781219,"_hasShrinkwrap":false,"_cnpm_publish_time":1501132781219},"1.0.0":{"name":"vmodule-webpack-plugin","version":"1.0.0","description":"A virtual module webpack plug-in","main":"./lib/plugin.js","scripts":{"test":"mocha"},"keywords":["webpack","plugin","virtual","module"],"author":{"name":"Houfeng"},"license":"MIT","dependencies":{"ntils":"^2.1.2"},"gitHead":"16299fcb54ed7b0d3d643598f77e610d1ac76cfb","_id":"vmodule-webpack-plugin@1.0.0","_npmVersion":"5.3.0","_nodeVersion":"8.2.1","_npmUser":{"name":"houzhanfeng","email":"admin@xhou.net"},"dist":{"shasum":"325388600fe75b4f28d5f4f668839987c066cb88","size":951,"noattachment":false,"key":"/vmodule-webpack-plugin/-/vmodule-webpack-plugin-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/vmodule-webpack-plugin/download/vmodule-webpack-plugin-1.0.0.tgz"},"maintainers":[{"name":"houzhanfeng","email":"admin@xhou.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vmodule-webpack-plugin-1.0.0.tgz_1500915910675_0.4614193148445338"},"directories":{},"publish_time":1500915911581,"_hasShrinkwrap":false,"_cnpm_publish_time":1500915911581}},"readme":"# VModule webpack plugin\n\nVModule 是一个用于创建虚拟模块 webpack 插件。\n\n大约有如下使用场景:\n- 需要在构建阶段将动态计算后结果生成一个模块\n- 构建后的运行时代码需要引用一些构建阶段的环境变量或其它数据\n\n## 安装\n\n```sh\n$ npm i vmodule-webpack-plugin --save\n```\n\n## 使用\n\n在 webpack.config.js 中配置 VModule \n```js\nconst webpack = require('webpack');\nconst VModulePlugin = require('vmodule-webapck-plugin');\n\nmodule.exports = {\n  ...\n  plugins: [\n    //返回对象的虚拟模块\n    new VModulePlugin({\n      name: 'demo-module1',\n      handler: function() {\n        return { name: 'demo', env: process.env.NODE_ENV };\n      },\n      //在 watch 的文件发生变化时，重新执行 handler 生成虚拟模块\n      watch: ['glob 语法'] \n    }),\n    //返回代码的虚拟模块\n    new VModulePlugin({\n      name: 'demo-module2',\n      type: 'js'\n      handler: function() {\n        reutrn `\n          exports.say = function(text) {\n            console.log('say:', text);\n          };\n        `;\n      }\n    })\n  ]\n  ...\n};\n```\n\n在代码中使用虚拟模块\n```js\nconst module1 = require('demo-module1');\nconst module2 = requrie('demo-module2');\n\nmodule2.say(JSON.stringify(module1));\n\n//打印\n//say: { \"name\": \"demo\", \"env\": \"NODE_ENV 的值\" }\n\n```","_attachments":{},"license":"MIT"}