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

fake-require-main

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

fake-require-main

Fakes require.main for debug and testing purposes.

latest
Source
npmnpm
Version
1.0.2
Version published
Weekly downloads
5
-16.67%
Maintainers
1
Weekly downloads
 
Created
Source

About

Fakes process.mainModule and require.main for debug and testing purposes.

NPM Version Build Status

Usage


// Always overwrite the main module. Use this to code your own conditions for an overwrite.
require("fake-require-main").fake(require, __filename);

// Overwrite the main module if called by a specific command line application.
require("fake-require-main").fakeFor(require, __filename, "electron");

See /test/main.js for more details.

Contributing

License

Keywords

iron-node-tool

FAQs

Package last updated on 20 Aug 2015

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