null-check
Ensure a path doesn't contain null bytes
Last updated 11 years ago by sindresorhus .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install null-check 
SYNC missed versions from official npm registry.

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

Current Tags

  • 3.0.0                                ...           latest (6 years ago)

3 Versions

  • 3.0.0                                ...           6 years ago
  • 2.0.0                                ...           11 years ago
  • 1.0.0                                ...           12 years ago
Maintainers (1)
Downloads
Total 9
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 0
Last Month 3
Dependencies (0)
None
Dev Dependencies (2)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE