Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
github.com/brigand/ink-progress-bar
Progress bar component for Ink.
$ npm install ink-progress-bar
See examples/basic.js for an example app. Run it with ./examples/run basic
.
const {h} = require('ink');
const ProgressBar = require('ink-progress-bar');
<ProgressBar
character="x"
percent={0.5}
left={5}
right={0}
green
/>
All props except the ones below are passed to <Text>
as-is.
Type: string
Default: '█'
The character to use for each step.
Type: number
Default: 0
The percentage (between 0 and 1) of progress.
Type: number
Default: 0
The number of characters to subtract from each side of the progress bar. Commonly used if you want text before/after the progress bar on the same line. See examples/basic.js for an example.
MIT © Frankie Bagnardi
FAQs
Unknown package
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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.