1.0.0 • Published 2 years ago

logwrite v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

Logwrite NPM Package

Logwrite writes to a log file and prints in one function, made for nodejs.

This is a Node.js module available through the npm registry.

Before installing, download and install Node.js. Node.js 0.10 or higher is required.

If this is a brand new project, make sure to create a package.json first with the npm init command.

Installation is done using the npm install command:

$ npm install logwrite

Installing inside files is done by adding the following code:

const logwrite = require('logwrite')

Using Logwrite

Using Logwrite is the simplest part, only one function!

logwrite.go(content)

The parameter content can be any kind of data.

If no logbin.log file exsists already, one will be made in the directory from which it is called.