Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
| " _ _ " | |
| " _ /|| . . ||\ _ " | |
| " ( } \||D ' ' ' C||/ { % " | |
| " | /\__,=_[_] ' . . ' [_]_=,__/\ |" | |
| " |_\_ |----| |----| _/_|" | |
| " | |/ | | | | \| |" | |
| " | /_ | | | | _\ |" | |
| It is all fun and games until someone gets hacked! |
| const fs = require('fs') | |
| function readPackage (callback) { | |
| //as of now we do not have default values in Node.js | |
| callback = callback || function () {} | |
| return new Promise((resolve, reject) => { | |
| fs.readFile('./package.json', (err, data) => { | |
| if (err) { | |
| reject(err) | |
| return callback(err) |
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)