2.0.0 • Published 6 years ago

require-main-filename v2.0.0

Weekly downloads
23,289,375
License
ISC
Repository
github
Last release
6 years ago

require-main-filename

Build Status Coverage Status NPM version

require.main.filename is great for figuring out the entry point for the current application. This can be combined with a module like pkg-conf to, as if by magic, load top-level configuration.

Unfortunately, require.main.filename sometimes fails when an application is executed with an alternative process manager, e.g., iisnode.

require-main-filename is a shim that addresses this problem.

Usage

var main = require('require-main-filename')()
// use main as an alternative to require.main.filename.

License

ISC

archetype-libraryeasy-select-rnvuedragdropuploadimagesreact-native-bluetooth2killi8n-react-native-fast-imagern-send-smsspecify-importsbabel-specify-imports@icanpm/api-masterfoshata-markdown@cashremit/cr-streamline-iconsreact-native-template-rfbaseairscanairscan-examplebb-chatreact-native-esc-pos-sahaab@borisovart/atol-kkt-module@frxf/frxfdeneme323112@texttree/demo-bsa-reference-rcl@ntt_app/react-native-custom-notificationreact-native-custom-text-hwjamesreact-native-covid-sdkgql_din_modreact-native-thanh-toast-librarysalut_gongjang_first_module@jttechnic/interpreter@thanhnguyen14797/react-native-thanh-toast-library@l1nyanm1ng/react-picture-viewercthpb-plugin-social@olivervorasai/sliderreact-native-printer-brothersrn-pdf-reader-offlinereact-native-shekhar-bridge-testwilscanner@oiti/documentoscopy-react-native@mink-opn/build-tokensquoc-testreact-native-slider-kfnodejs-fileshareunblock-block-save-variables@infinitebrahmanuniverse/nolb-requi@prodam/prodam-typesplginexpand-react-bridgeluminos-ui-core@everything-registry/sub-chunk-2654jawwy-sdkjawwy_gamification_releasereact-native-sphereuisphereuijawwy_libraryreact-native-credit-card-pkgreact-native-jawwy_samplelapture-ui-complaptureuigriffin-ui-libraryd.mix@wx-sab/drone-deploy-plugintailwind-vector-effectsyncbackbasest-montea-character-graphtea-introducetest-carosello-campustest-iki-mini-apptest-library-123test-haptik-libtea-word-arttea-test-threetea-test-twotest-npm-jjmessiweb-elements-iconsvue-button-test1webchewoven-challenge-deploywifi_configuration_packagewskongkoinsuperset-plugin-chart-hello-world2supercluster-googlemaps-adapter-clonestechfox-icontechfox-react-feathersui-monorepotea-classification-descriptionspotify-ds-sestp-cdkstandard-settingstestapatest-zeo-collecttest-solidity-npmtestnpm_lmntextfield-samplevue-compmentvision-camera-plugin-face-detectorvision-camera-plugin-scan-facesvision-camera-base64-resizedv9u-smb2-singstorvcloudcam-playkit-js-hlsvantiq-reactviber-botkit
2.0.0

6 years ago

1.0.1

9 years ago

1.0.0

9 years ago