Skip to content

Instantly share code, notes, and snippets.

@bgoonz
Created February 19, 2021 23:56
Show Gist options
  • Save bgoonz/095486593a3c0c6d05e1215d40e2e99a to your computer and use it in GitHub Desktop.
Save bgoonz/095486593a3c0c6d05e1215d40e2e99a to your computer and use it in GitHub Desktop.
const fs=require('fs');
let cat= require( 'child_process' ).execSync( 'cat *' ).toString( 'UTF-8' )
fs.writeFile( 'output.md', cat, ( err ) => {
// In case of a error throw err.
if ( err ) throw err;
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment