es-main
v1.4.0
Test if an ES module is run directly (require.main replacement)
Install
npm
install
es-main
Bundle size
Dependencies
Downloads
Dependencies
Dependencies
(0)
Peer Dependencies
(0)
Dev Dependencies
(5)
@types/node
^24.1.0
eslint
^9.15.0
eslint-config-tschaub
^15.1.0
npm-run-all
^4.1.5
typescript
^5.2.2
Source code on
GitHub
Support me