Created
November 13, 2017 00:50
-
-
Save philipnewcomer/103b3080792183b7f28c8b2ff363e3f4 to your computer and use it in GitHub Desktop.
Request Test (Node CLI App)
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
{ | |
"dependencies": { | |
"sync-request": "^4.1.0" | |
} | |
} |
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
#!/usr/bin/env node | |
const request = require('sync-request'); | |
const objectCacheDropinRequest = request( | |
'GET', | |
'https://raw.githubusercontent.com/pantheon-systems/wp-redis/master/object-cache.php' | |
); | |
console.log( objectCacheDropinRequest.getBody().toString() ); |
@AaronHolbrook this is just a barebones Node CLI app. Drop the two files in an empty directory somewhere on your system, run npm install
, and then ./request-test.js
.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How do I install this?