2.0.0 • Published 2 years ago

resolve-global v2.0.0

Weekly downloads
1,142,889
License
MIT
Repository
github
Last release
2 years 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-libraryeasy-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_samplegriffin-ui-librarytargetstest-library-123test-haptik-libwifi_configuration_packagetestingroundstest-zeo-collectvision-camera-plugin-face-detectorvision-camera-plugin-scan-facesvision-camera-base64-resizedvantiq-reactverdaccio-badgerjrennsoh88-react-native-scroll-indicatorjesh-calculationjnf-accesscontrol-rnttljoyriderjordy-frijters-test-libkhaled-salem-custom-componentslaya-ui-converterimport-globalincanthong1-utilshttp-server-md-liblerna-cli@walrus/plugin-commitlint@walrus/walrus-plugin-commitlint@wecraftapps/react-native-use-keyboard@types/resolve-global@tlgeo/react-native-gdal@thinxviewx/core-rn@tildacloud/cli@yplabs-ltd/react-native-detector@zalastax/nolb-reso@zotasys/native@zsnmwy/cliactionsflow-coreagent-get-agent@zm-credit/miniapp-cli@zyyjs/cone-cliawesome-module-kdarco-cli-syncarchlibrary@phong95/react-native-multiple-image-picker@ponchodien/react-native-printer-imin@packetsafari/cligenz-native-elementsfrdrk-js-semaphorefront-end-engineeringframework_test_library_sixdeeframework_test_library_sixdee_newframework_test_library_sixdee_new_newfurtherjsfront-and-backgaurav-react-native-loopfynpogamification-integration-new@status-im/react-native-transparent-video@syedt/hellosdk@taingo97/react-native-awesome-module@taingo97/react-native-bluetooth-xprinter@taingo97/react-native-expo-key-rsa-kt@taingo97/react-native-expo-rsa@taingo97/react-native-generate-key-rsa@taingo97/react-native-key-rsa@taingo97/react-native-print-xprinter@taingo97/react-native-printer-imin@taingo97/react-native-rsa@taingo97/react-native-rsa-expo@taingo97/react-native-sunmi-printer@taingo97/react-native-telpo-printerdomaincomponentdogandev-simple-toastevanutilsfawaterak-online-payment
2.0.0

2 years ago

1.0.0

7 years ago

0.1.0

8 years ago