Npm - Main (Entry Point)

> (World Wide) Web - (W3|WWW) > Javascript (Js|ECMAScript) > Node - npm cli (Node package manager)

Table of Contents

1 - About

Language - (Main|Application Entry point) in Node.

  • See main property in package.json
  • Because module provides a filename property (normally equivalent to __filename), the entry point of the current application can be obtained by checking require.main.filename
Advertising
web/javascript/npm/main.txt · Last modified: 2019/02/16 17:40 by gerardnico