Created
June 24, 2018 17:25
-
-
Save pbindustries/9c26485dc4a6955f1324e222ca424f88 to your computer and use it in GitHub Desktop.
Check that you have node and needed dependencies
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
/* Check for Node.js */ | |
var IS_NODE = false; | |
if (typeof exports !== 'undefined') { | |
if (typeof module !== 'undefined' && module.exports) { | |
IS_NODE = true; | |
// Get dependencies | |
request = require("request"); | |
jQuery = require("cheerio"); | |
$ = require("cheerio"); | |
_ = require("underscore"); | |
// Add other dependencies here | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment