UNPKG

lgfl

Version:

A lightweight Node.js library for file-based logging (Console.log and errors).

7 lines (6 loc) 145 B
const cfs = require("cubie-fs"); function log(filePath) { return function (message) { cfs.appendFileSync(filePath, message + "\n"); }; }