Example #1
0
lazyRequire.canSyncInstall = function canSyncInstall (opts, next) {
	// Prepare
	[opts, next] = extractOptsAndCallback(opts, next)
	let result = safeps.hasSpawnSync()
	let error = null

	// Fetch
	if ( result instanceof Error ) {
		error = result
		result = null
	}

	// Complete
	return complete(error, result, next)
}
Example #2
0
lazyRequire.canSyncInstall = function canSyncInstall(opts, next) {
	var _extractOptsAndCallba13 = extractOptsAndCallback(opts, next);
	// Prepare

	var _extractOptsAndCallba14 = _slicedToArray(_extractOptsAndCallba13, 2);

	opts = _extractOptsAndCallba14[0];
	next = _extractOptsAndCallba14[1];

	var result = safeps.hasSpawnSync();
	var error = null;

	// Fetch
	if (result instanceof Error) {
		error = result;
		result = null;
	}

	// Complete
	return complete(error, result, next);
};