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.
@contrast/fn-inspect
Advanced tools
Retrieve function name and line number from a function reference
This module exposes some useful information about functions from the v8 engine, including:
Getting details about a function:
const { funcInfo } = require('@contrast/fn-inspect');
function testFn() {}
const results = funcInfo(testFn);
// => { lineNumber: 2, column: 15, file: 'example.js', method: 'testFn', type: 'Function' }
npm run build
will build the project for your current OS and architecture.
npm run download
will pull the most recent build artifacts from GitHub.
Simply run npm version
and then invoke the release
workflow. You can run
release
using the github UI or, if you have the github CLI installed, you
can run gh workflow run release.yml
(also available via npm run release
).
Note that upload-artifacts@v4
no longer works when there are multiple
artifacts with the same name. That's why the release
workflow has the
following section:
uses: actions/upload-artifact@v4
with:
name: prebuilds-${{ matrix.build-group }}
path: prebuilds/
FAQs
Retrieve function name and line number from a function reference
The npm package @contrast/fn-inspect receives a total of 592,309 weekly downloads. As such, @contrast/fn-inspect popularity was classified as popular.
We found that @contrast/fn-inspect demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 9 open source maintainers 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.