Skip to content

Instantly share code, notes, and snippets.

View warrenMichael's full-sized avatar

Michael Warren warrenMichael

  • Formerly Condé Nast & BuoySoftware
  • New York, NY
View GitHub Profile
@bingeboy
bingeboy / payloadfs.js
Last active January 20, 2016 21:17
write a payload from flux to temp folder
/////////////////////////////////////////////////////////////////////////////////////
// TEST CODE FOR PAYLOAD DATA CREATION
/////////////////////////////////////////////////////////////////////////////////////
var fs = require('fs');
var fileName = '/tmp/results.json';
fs.writeFile( fileName, JSON.stringify(res.body, null, 4), function (error) {
if (error) {
console.log(error);
} else {
console.log('JSON saved to temp dir: ', fileName);