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-library@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_samplegriffin-ui-librarytargetstest-library-123test-haptik-libwifi_configuration_packagetestingroundstest-zeo-collectvision-camera-plugin-face-detectorvision-camera-plugin-scan-facesvision-camera-base64-resizedvantiq-reactverdaccio-badger@cs6/react-native-test-native-view-library@con-test/react-native-concent-common@damruravihara/react-native-testing-package@corelmax/react-native-my2c2p-sdk@cpany/cli@booljs/cli@praella/localisationistjrennsoh88-react-native-scroll-indicatorjesh-calculationjnf-accesscontrol-rnttljoyriderjordy-frijters-test-libkhaled-salem-custom-componentslaya-ui-converterjawwy_library_newjawy_library_v1gamification-jawwy-libraryframework_test_library_sixdee_new_jawwytest_lib_module_aarquickcapture_react_nativern-agora-ios-mreact-native-omental-frameworkreact-native-sixdee_test_libtypescript-tstl-plugintwine-libtwine-library@amiruldev/wajs@amirdiafi/react-native-ios-haptics@apardellass/react-native-audio-stream@angangii/frontendpractice@arco-design/arco-cli-sync@aviinash_jha/react-native-test_multiply@ali5049/react-native-buttons@alicd/cone-cli@alicd/cone-node-util@alfredchow/commitlint-cli@aysea/react-native-ui-library@blazinaj/app-kit@brantalikp/rn-resize@charliec3/gh-actions-example@charliec3/gh-actions-example-docs@charliec3/gh-actions-example-docs2@adatechnology/react-native-android-getnet-pos@adembacaj/react-native-google-pay@_nomtek/react-native-shimmer-animation@code-engine/utils@code-engine/workers@azalpacir/react-native-dhp-printeryangtao-jsyarnwyarn-react-hook-formzents-clizoro-cli-utilvalaxy@felipesimmi/react-native-datalogic-module@edgio/cli@hawkingnetwork/react-native-tab-view@hbglobal/react-native-actions-shortcuts@idas1/ui-component-lib@filipe_x3/kdeploy@geeky-apo/react-native-advanced-clipboard
2.0.0

2 years ago

1.0.0

6 years ago

0.1.0

8 years ago