Sha256: d747c86c7e6a99a805dd8ca67f32be468f16f5a9b10156cf84aaa0c28de7f12e

Contents?: true

Size: 330 Bytes

Versions: 3

Compression:

Stored size: 330 Bytes

Contents

'use strict';
module.exports = function (pth, cb) {
	if (String(pth).indexOf('\u0000') !== -1) {
		var err = new Error('Path must be a string without null bytes.');
		err.code = 'ENOENT';

		if (typeof cb !== 'function') {
			throw err;
		}

		process.nextTick(function () {
			cb(err);
		});

		return false;
	}

	return true;
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
hooch-0.4.2 jasmine/node_modules/karma-chrome-launcher/node_modules/fs-access/node_modules/null-check/index.js
hooch-0.4.1 jasmine/node_modules/karma-chrome-launcher/node_modules/fs-access/node_modules/null-check/index.js
hooch-0.4.0 jasmine/node_modules/karma-chrome-launcher/node_modules/fs-access/node_modules/null-check/index.js