Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
status-logger
Advanced tools
Manage complex CLI output with arrays and automatically print any changes to stdout via ansi-diff-stream.
WARNING: Awesomeness elsewhere. status-logger
was nice but it wasn't enough, it still felt like node but I wanted frontend javascript fun. Introducing... 🥁 ... neat-log. neat-log is much neater and I'd definitely recommend using that. It uses status-logger
under the hood.
The example here will initially print:
Status Logger Example:
starting...
Then once it gets started, it will print the time every second:
Status Logger Example:
Time = 10 seconds
var output = ['Status Logger Example:', 'starting...']
var log = statusLogger(output)
setInterval(function () {
log.print()
}, 100)
log.print()
start()
function start () {
var sec = 0
setInterval(function () {
sec++
output[1] = `Time = ${sec} seconds`
}, 1000)
}
Run node basic-example.js
or node example.js
to see full examples. You can find more complex usage in these modules:
npm install status-logger
var log = statusLogger(messages, opts)
messages
is an array with of lines to print. They will be printed in order with a newline spacer between each. Message arrays are flattened so they can be any mix of nested arrays and strings.
quiet
: do not print anythingdebug
: print everything to console.log or console.errorlog.print()
Print messages from all groups.
var output = log.clear(messages)
Clear all output and create a empty output array (or with new messages
).
log.diff
ansi-diff-stream
instance
log.messages
Stored reference to the original messages array.
MIT
FAQs
print updating progress to console and stdout
We found that status-logger 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.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.