New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

logbotjs

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

logbotjs

LogBot is a simple console/file logger for NodeJS/bun written in TypeScript.

latest
Source
npmnpm
Version
2.2.0
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

LogBot

LogBot is a simple logger written in TypeScript. It works in both Node.js and bun.

Installation

Use your favourite package manager to install LogBot.

npm install logbotjs

Usage

import { LogBot } from "logbotjs"

const logger = new LogBot({
    logfile: "./log.txt",
})

//alternatively
logger.setLogFilePath("./log.txt")

logger.log(404, "Not found")
logger.log(100, "Continue")
logger.log(200, "OK")
logger.log(500, "Internal server error")

Will print to console:

example.png

And will write to log.txt:

[2021-08-01 12:00:00] [404] Not found
[2021-08-01 12:00:01] [404] Continue
[2021-08-01 12:00:02] [200] OK
[2021-08-01 12:00:03] [500] Internal server error

Widgets

Spinner

logger.widgets.spinner.start('spinner1', 'Loading...')
logger.widgets.spinner.update('spinner1', 'Loading... 50%')
logger.widgets.spinner.end('spinner1')

Progressbar

logger.widgets.progress.start('progress1', 'Downloading...', 100)
logger.widgets.progress.update('progress1', 50)
logger.widgets.progress.increment('progress1', 50)
logger.widgets.progress.end('progress1')

FAQs

Package last updated on 24 Jun 2026

Related posts