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

@devexpress/callsite-record

Package Overview
Dependencies
Maintainers
22
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@devexpress/callsite-record

Create fancy log entries for errors and function call sites.

  • 4.1.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
133K
decreased by-2.62%
Maintainers
22
Weekly downloads
 
Created

What is @devexpress/callsite-record?

@devexpress/callsite-record is a Node.js package that allows developers to capture and manipulate call site records. This can be useful for debugging, logging, and error handling by providing detailed information about the call stack.

What are @devexpress/callsite-record's main functionalities?

Capture Call Site Records

This feature allows you to capture call site records, which can be used to get detailed information about the call stack. The example code captures a call site record and filters the stack frames to include only those that have 'example' in the file name.

const callsiteRecord = require('@devexpress/callsite-record');

function exampleFunction() {
  const record = callsiteRecord({ forError: new Error() });
  console.log(record.renderSync({ stackFilter: (frame) => frame.getFileName().includes('example') }));
}

exampleFunction();

Render Call Site Records

This feature allows you to render call site records into a human-readable format. The example code captures a call site record and renders it synchronously.

const callsiteRecord = require('@devexpress/callsite-record');

function exampleFunction() {
  const record = callsiteRecord({ forError: new Error() });
  console.log(record.renderSync());
}

exampleFunction();

Asynchronous Rendering

This feature allows you to render call site records asynchronously. The example code captures a call site record and renders it asynchronously.

const callsiteRecord = require('@devexpress/callsite-record');

async function exampleFunction() {
  const record = callsiteRecord({ forError: new Error() });
  const rendered = await record.render();
  console.log(rendered);
}

exampleFunction();

Other packages similar to @devexpress/callsite-record

Keywords

FAQs

Package last updated on 17 Aug 2023

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