Created
October 7, 2016 17:39
-
-
Save ryanve/7b815b86233a1107b2c2f94053553dfb to your computer and use it in GitHub Desktop.
node readJsonSync function
This file contains hidden or 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
| function readJsonSync(file) { | |
| return JSON.parse(require('fs').readFileSync(file, 'utf8')) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment