
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
@contrast/fn-inspect
Advanced tools
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
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.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.