Latest Threat ResearchGlassWorm Loader Hits Open VSX via Developer Account Compromise.Details
Socket
Book a DemoInstallSign in
Socket

hypercore-logger

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hypercore-logger

Distributed logger

Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
7
75%
Maintainers
1
Weekly downloads
 
Created
Source

hypercore-logger

Distributed logger

npm install hypercore-logger

Usage

const Logger = require('hypercore-logger')

// pass backing hypercore
const log = new Logger(core)

// add a log message
await log.log({ hello: 'world' })

Setup swarming with Hyperswarm on the core and somewhere else

const log = new Logger(core)

for await (const { timestamp, stats, message } of log.tail()) {
  console.log(timestamp, stats, message)
}

License

Apache-2.0

FAQs

Package last updated on 11 Apr 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts