This commit is contained in:
Tommy Parnell
2016-05-17 08:14:13 -04:00
commit d460e37fe9
4 changed files with 24 additions and 0 deletions

5
checkMutation.js Normal file
View File

@@ -0,0 +1,5 @@
var t = require('./main.js')
module.exports = ()=>{
console.log(t.name);
console.log(t.checkGrade());
}

4
index.js Normal file
View File

@@ -0,0 +1,4 @@
var t = require('./main.js');
t.name = "dawg";
t.checkGrade = ()=>100
require('./checkMutation.js')();

4
main.js Normal file
View File

@@ -0,0 +1,4 @@
module.exports = {
name:"tommy",
checkGrade: ()=>10
}

11
package.json Normal file
View File

@@ -0,0 +1,11 @@
{
"name": "nodemutate",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC"
}