2.0.0 • Published 6 months ago

resolve-global v2.0.0

Weekly downloads
1,142,889
License
MIT
Repository
github
Last release
6 months ago

resolve-global

Resolve the path of a globally installed module

Install

npm install resolve-global

Usage

npm install --global cat-names
import {resolveGlobal} from 'resolve-global';

console.log(resolveGlobal('cat-names'));
//=> '/usr/local/lib/node_modules/cat-names'

API

resolveGlobal(moduleName)

Throws if the module cannot be found.

resolveGlobalSilent(moduleName)

Returns undefined instead of throwing if the module cannot be found.

moduleName

Type: string

What you would use in import().

Related

archetype-library@edgio/cli@layer0/clieasy-select-rnreact-native-bluetooth2parcel-plugin-react-native-webairscanairscan-examplereact-native-esc-pos-sahaab@borisovart/atol-kkt-moduledeneme323112@steven-torres/jsxr@ntt_app/react-native-custom-notificationreact-native-covid-sdk@jttechnic/interpreterreact-native-printer-brothersreact-native-shekhar-bridge-test@oiti/documentoscopy-react-nativequoc-testluminos-ui-core@everything-registry/sub-chunk-2657jawwy-sdkjawwy_gamification_releasereact-native-sphereuisphereuijawwy_libraryreact-native-credit-card-pkgreact-native-jawwy_samplezoro-cli-utilzeo-collectzents-cli@geeky-apo/react-native-advanced-clipboardwifi_configuration_packageyarnwyangtao-js@grandeto/vrchats@hemith/react-native-tnkfluent.adflow.reactnativesdk-alphafluent.adflow.reactnativesdkfmsljawwy_library_newjawy_library_v1gamification-jawwy-libraryframework_test_library_sixdee_new_jawwytest_lib_module_aar@imazzine/cli@kolibrijs/cli@kolibry/cli@ko-developerhong/react-native-multiple-image-picker@kalkanisys/vue-select@lehuyaa/my-assets@lordbeanbag/vite-plugin-svg-icons-monorepo@idas1/ui-component-lib@infinitebrahmanuniverse/nolb-reso@npm_fluentco/adflow-react-native-sdkgo-cligogency-test-2gogency@oiti/rn-liveness2dgriffin-ui-libraryfurtherjs@mhy/configframework_test_library_sixdee_newframework_test_library_sixdee_new_newframework_test_library_sixdeefrdrk-js-semaphorefront-and-backfront-end-engineeringfawaterak-online-paymentfawatrak-online-paymentfynpogamification-integration-newgaurav-react-native-loop@nasc/furtherjs@navabi/react-native-ssl-pinninggenz-native-elements@inease/slidev-cli@jellywelly/iterare@jfilipe-sparta/react-native-module_2evanutils@safely-project/safely-ts@opn-ooo/eslint-config-opn@react-native-ui-design/buttonimport-globalincant@saad27/react-native-bottom-tab-tour@hawkingnetwork/react-native-tab-view@hbglobal/react-native-actions-shortcuts@jpmorganchase/mosaic-create-site@praella/localisationisthttp-server-md-libhong1-utils@packetsafari/cli@phong95/react-native-multiple-image-pickerjrennsoh88-react-native-scroll-indicator@slidev/cli@felipesimmi/react-native-datalogic-module@sidghimire/react-native-mapbox-navigation@seamlessc/tabler-icons-react@sephriot/react-native-persistable-uri
2.0.0

6 months ago

1.0.0

5 years ago

0.1.0

7 years ago