New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

examination

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

examination

Thoroughly examine the state of a Node.js process

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

examination

Current Version Build Status via Travis CI Dependencies

belly-button-style

Thoroughly examine the state of a Node.js process. examination allows a heap snapshot, diagnostics report, and core dump to be generated and written to an output directory with a single function call.

Basic Usage

'use strict';
const Examination = require('examination');

// Dump the report, core, and heap snapshot to the __dirname directory.
Examination({
  directory: __dirname,
  heapdump: true,
  report: true,
  core: true
}, (err) => {
  if (err) {
    // Handle error
  }
});

// Alternatively...

// Create a reusable bound function that only writes a heap snapshot and
// diagnostics report to /tmp/foo.
const bound = Examination.bind(null, {
  directory: '/tmp/foo',
  heapdump: true,
  report: true
}, (err) => { /* Ignore error */ });

bound();

API

examination(options, callback)

  • Arguments
    • options (object) - A configuration object supporting the following schema.
      • directory (string) - The directory where the output files will be written. If this directory (including any parent directories) does not exist, it will be created.
      • heapdump (boolean) - If true, a heap snapshot will be written to directory. Defaults to false.
      • report (boolean) - If true, a diagnostics report will be written to directory. Defaults to false.
      • core (boolean) - If true, an archive containing a core file and all loaded native libraries will be written to directory. Defaults to false. Note that generating these files in particular will take time and consume considerable disk space.
      • error (error) -
    • callback (function) - A function that is called after all artifacts have been created. This function takes the following arguments.
      • err (error) - Represents any error that occurs. Note that the artifacts are created in parallel, so it is possible to receive an error here and still have one or more output files written.
  • Returns
    • Nothing

Keywords

core

FAQs

Package last updated on 07 Jul 2017

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