Skip to content

Latest commit

 

History

History
19 lines (18 loc) · 321 Bytes

README.md

File metadata and controls

19 lines (18 loc) · 321 Bytes

node-source

在node中require了一个js文件之后做了哪些事呢

node-source
  - index.js
  - module1.js

module1.js

module.exports.content = 'hello hardy'

index.js

const module1 = require('./module1')
console.log(module1.content)  // hello hardy

why ???

let's see the code~