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.
sbfaulkner-pygmalion
Advanced tools
Syntax highlighting using the pygments.com "web service".
I have historically used ultraviolet for any syntax highlighting. However, in order to use ultraviolet, you need to be able to use the oniguruma library. Unfortunately, some hosting services (like the Media Temple grid service) do not support this library. I needed another solution, and it seemed like something that could be outsourced.
Run the following if you haven't already:
$ gem sources -a http://gems.github.com
Install the gem(s):
$ sudo gem install -r sbfaulkner-pygmalion
In ruby...
require 'pygmalion'
...
string.highlight
string.highlight(:language => 'js')
string.highlight(:language => 'rb', :line_numbers => true)
From the command-line...
pygmalion
File.read('hello.rb').highlight
Results in...
<div class="highlight"><pre><span class="k">def</span> <span class="nf">hello</span>
<span class="n">puts</span> <span class="s">"hello"</span>
<span class="n">end</span>
</pre></div>'
Author: S. Brent Faulkner brentf@unwwwired.net
License: Copyright © 2008 unwwwired.net, released under the MIT license
FAQs
Unknown package
We found that sbfaulkner-pygmalion 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.