Files
sign-android-release/node_modules/import-local
Drew Heavner 8b97d1195a Adding updated node_modules
Bumping version to v1.0.3
Removing yarn.lock as this should be built with NPM
2020-11-13 16:28:52 -05:00
..
2019-11-08 09:40:34 -05:00
2020-11-13 19:11:55 +01:00
2019-11-08 09:40:34 -05:00
2020-11-13 16:28:52 -05:00
2020-11-13 19:11:55 +01:00

import-local Build Status

Let a globally installed package use a locally installed version of itself if available

Useful for CLI tools that want to defer to the user's locally installed version when available, but still work if it's not installed locally. For example, AVA and XO uses this method.

Install

$ npm install import-local

Usage

const importLocal = require('import-local');

if (importLocal(__filename)) {
	console.log('Using local version of this package');
} else {
	// Code for both global and local version here…
}

Get professional support for this package with a Tidelift subscription
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.