3.0.0 • Published 4 years ago

null-check v3.0.0

Weekly downloads
948,821
License
MIT
Repository
github
Last release
4 years ago

null-check

Ensure a path doesn't contain null bytes

Install

$ npm install null-check

Usage

import nullCheck from 'null-check';

try {
	nullCheck('unicorn.png\u0000');
} catch (error) {
	console.log(error);
	//=> 'Path must be a string without null bytes.'
}