Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 16, 2024 via pnpm

npmlog 4.0.2

logger for npm
Package summary
Share
0
issues
2
licenses
15
MIT
10
ISC
Package created
6 Jun 2012
Version published
12 Dec 2016
Maintainers
5
Total deps
25
Direct deps
4
License
ISC

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
15 Packages, Including:
ansi-regex@2.1.1
code-point-at@1.1.0
core-util-is@1.0.3
delegates@1.0.0
is-fullwidth-code-point@1.0.0
isarray@1.0.0
number-is-nan@1.0.1
object-assign@4.1.1
process-nextick-args@2.0.1
readable-stream@2.3.8
safe-buffer@5.1.2
string-width@1.0.2
string_decoder@1.1.1
strip-ansi@3.0.1
util-deprecate@1.0.2

ISC License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
Cannot
hold-liable
Must
include-copyright
include-license
10 Packages, Including:
aproba@1.2.0
are-we-there-yet@1.1.7
console-control-strings@1.1.0
gauge@2.7.4
has-unicode@2.0.1
inherits@2.0.4
npmlog@4.0.2
set-blocking@2.0.0
signal-exit@3.0.7
wide-align@1.1.5
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

4
All Dependencies CSV
β“˜ This is a list of npmlog 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
are-we-there-yet1.1.75.11 kBISC
prod
console-control-strings1.1.03.26 kBISC
prod
gauge2.7.415.64 kBISC
prod
set-blocking2.0.02.16 kBISC
prod

Visualizations

Frequently Asked Questions

What does npmlog do?

npmlog is a basic logging utility that is used by npm. It sports robust features such as support for custom logging levels and color-coded output. By default, log messages are written to the stderr stream but this can be changed as per your preference. Beyond standard logging, npmlog sports color and style customization options, allows you to pause and resume logs, and even hosts a functionality to display a progress spinner.

How do you use npmlog?

npmlog is straightforward to use and it can be included in your JavaScript project with a single line of code. First, it needs to be installed through npm with: npm install npmlog --save. After it's installed, it can be used by requiring it in your project like so:

var log = require('npmlog')
log.info('fyi', 'I have a kitty cat: %j', myKittyCat);

It provides several methods to display logs at different levels. For example, you can log a message at the verbose level by simply calling: log.verbose('prefix', 'message'). Additionally, you can control the logging level by setting the 'log.level' property. For instance, log.level = "warn" will cause all severe mistakes to be logged. The level "silent" will suppress all logs.

Where are the npmlog docs?

The documentation for npmlog can be found on the npm webpage dedicated to the package, as well as within the README file in its GitHub repository. Please note that to dive deeper into certain methods like setGaugeTemplate or setGaugeThemeset, you may need to refer to the '[gauge documentation]' (https://npmjs.com/package/gauge) as it is bundled with npmlog for displaying the progress bar. Similarly, some method documentations redirect to the are-we-there-yet package (for methods like newItem, newStream, newGroup), which is used for tracking the progress of tasks.