Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@contrast/fn-inspect

Package Overview
Dependencies
Maintainers
9
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contrast/fn-inspect

Retrieve function name and line number from a function reference

  • 4.3.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
615K
decreased by-8.8%
Maintainers
9
Weekly downloads
 
Created
Source

@contrast/fn-inspect

Test

This module exposes some useful information about functions from the v8 engine, including:

  • file and line number given a function reference

Usage

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' }

Building locally

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.

Publishing

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/

Keywords

FAQs

Package last updated on 23 Jul 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc