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.
This is a wrapper for the Pygments syntax highlighter. It can be used to highlight a wide variety of languages in a wide variety of formats.
All functionality is available through the {Pygments} module. Highlighting is done via the {Pygments.highlight highlight} method, like so (reformatted for readability:
Pygments.highlight("Some.ruby(:code)", :ruby, :html, :nowrap => true)
#=> <span class="no">Some</span>
<span class="o">.</span>
<span class="n">ruby</span>
<span class="p">(</span>
<span class="ss">:code</span>
<span class="p">)</span>
Stylesheets and such can be retrieved via the {Pygments.style style} method.
yard-pygments requires that Pygments be installed.
Since Pygments is written in Python, it needs to be installed manually.
If you've got easy_install
, you can do
!!!sh
easy_install Pygments
Otherwise, it can be downloaded here.
FAQs
Unknown package
We found that rb-pygments 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.
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.