fs-logger.js

1.0.2 • Public • Published

fs-logger

NPM version node-current NPM downloads npm bundle size install size

Appends text to a file. Simple. 0 dependencies.

Based of fs.

Installation

Just run npm i fs-logger.js in console.

Usage

First import the module:

const log = require('fs-logger.js');

log()

(async function(){
    await log('log.txt', 'hello world');
    console.log('done!');
})();

log.txt:

hello world

log.sync()

log.sync('log.txt', 'hello world');
console.log('done!');

log.txt:

hello world
hello world

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    0
  • 1.0.1
    0
  • 1.0.0
    1

Package Sidebar

Install

npm i fs-logger.js

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

3.81 kB

Total Files

4

Last publish

Collaborators

  • theblockbuster1