How to use the safeps.hasSpawnSync function in safeps

To help you get started, we’ve selected a few safeps examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github bevry / lazy-require / source / index.js View on Github external
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)
}

safeps

Work with processes safely and easily with Node.js

Artistic-2.0
Latest version published 12 months ago

Package Health Score

61 / 100
Full package analysis