diff --git a/README.md b/README.md index 63a872c0b..4442d526d 100644 --- a/README.md +++ b/README.md @@ -284,7 +284,7 @@ pptx.save( 'Node_Demo', function(filename){ console.log('Created: '+filename); } pptx.save( 'Node_Demo', saveCallback ); // D: Use a filename of "http" or "https" to receive the powerpoint binary data in your callback // Used for streaming the presentation file via http. See the `nodejs-demo.js` file for a working example. -pptx.save( 'http', steamCallback ); +pptx.save( 'http', streamCallback ); ``` Saving multiple Presentations: diff --git a/examples/nodejs-demo.js b/examples/nodejs-demo.js index aa9300a57..4b173764f 100644 --- a/examples/nodejs-demo.js +++ b/examples/nodejs-demo.js @@ -42,7 +42,7 @@ function saveCallback(filename) { } // EX: Callback that receives the PPT binary data - use this to stream file -function steamCallback(data) { +function streamCallback(data) { var strFilename = "Node-Presenation-Streamed.pptx"; app.get('/', function(req, res) { @@ -74,7 +74,7 @@ runEveryTest(); pptx.save( 'Node_Demo_Callback_'+getTimestamp(), saveCallback ); // D: or use callback with 'http' in filename to get content back instead of writing a file - use this for streaming -//pptx.save( 'https://github.com/gitbrent/PptxGenJS/', steamCallback ); +//pptx.save( 'https://github.com/gitbrent/PptxGenJS/', streamCallback ); // **NOTE** If you continue to use the `pptx` variable, new Slides will be added to the existing set // Create a new variable or reset `pptx` for an empty Presenation