Last active
January 24, 2016 06:09
-
-
Save ajduke/ab68ea174e97df009844 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fs= require(‘fs’) | |
//read it asynchronously | |
fs.readFile('package.json', function(err, res){ | |
if(err){ | |
console.log('Error while reading the file content '); | |
} | |
console.log('file contents- ' + res) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment