null-check

Ensure a path doesn't contain null bytes

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
null-check
1203.0.02 years ago8 years agoMinified + gzip package size for null-check in KB

Readme

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.'
}