Skip to content

Instantly share code, notes, and snippets.

@tobbbe
Last active February 21, 2023 07:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tobbbe/b806af01a3ea89c3f1a83fa3b561409b to your computer and use it in GitHub Desktop.
Save tobbbe/b806af01a3ea89c3f1a83fa3b561409b to your computer and use it in GitHub Desktop.
log quick but (very) dirty file logger
require('fs').writeFile(
require('path').join(process.cwd(), '/.tob.log'),
JSON.stringify(_DATA_, null, 4),
(err)=>{if (err) console.log(err)}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment