error-printer

2.0.1 • Public • Published

Error Printer for NodeJS

This project provides a simple function for nodejs where you can automatically write the error message, error code, error date and formatted error date to a file.

How to install:
yarn add error-printer
How to test:
// Create folder with name "test" to project directory and then run this command:
yarn example
How to run:
yarn start
How to use in the project:
(in ES6)
import error_log from "error-printer";

try {
  // ... any codes
} catch(err) {
  error_log({
    message: err.message
  });
}

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.0.10latest

Version History

VersionDownloads (Last 7 Days)Published
2.0.10
2.0.00
1.0.0-pre-alpha.40
1.0.0-pre-alpha.30
1.0.0-pre-alpha.20
1.0.0-pre-alpha.10
1.0.0-pre-alpha.00

Package Sidebar

Install

npm i error-printer

Weekly Downloads

0

Version

2.0.1

License

MIT

Unpacked Size

5.29 kB

Total Files

4

Last publish

Collaborators

  • lfabl