Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
@articulate/progress
Advanced tools
Readme
Cheap, functional, terminal progress bar.
Next time you're tempted to process.stderr.write('.')
to track the progress of a script... don't. Use this instead.
progress : Object -> Number -> ()
To setup your progress bar, execute the module with an optional options object:
const progress = require('@articulate/progress')({ /* options here */ })
The following options are accepted:
Name | Type | Default | Description |
---|---|---|---|
label | String | 'progress' | custom label for your progress bar |
stream | stream.Writable | process.stderr | output stream for progress |
width | Number | 24 | max width of the bar |
The returned function accepts a progress ratio between 0
and 1
, and writes the progress bar to the output stream. Each time it is called, it will overwrite the previous state of the progress to appear animated in the console.
const progress = require('@articulate/progress')()
progress(0.55)
//> progress: ⣠ [============== ] 55%
See demo.js
for a slightly more complex example.
FAQs
Cheap, functional, terminal progress bar
The npm package @articulate/progress receives a total of 188 weekly downloads. As such, @articulate/progress popularity was classified as not popular.
We found that @articulate/progress demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.