Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 786 Bytes

README.md

File metadata and controls

21 lines (13 loc) · 786 Bytes

simple-file-log

simple node.js logger. create an appending log to any file path or type

NPM Downloads/week

Install

npm i simple-file-log

Example Usage

// ES6 import simple log or commonjs const simpleLog = require('simple-file-log');

import { simpleLog } from 'simple-file-log';

// call simpleLog with your file path, name, and file type ie: .log, json, txt etc, followed by what you want to append to the log

simpleLog('./logs/simple-file.log', 'simple file log r0x your s0x!);