null-check

3.0.0 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 3.0.0
    6
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 3.0.0
    6
  • 2.0.0
    1
  • 1.0.0
    404,955

Package Sidebar

Install

npm i null-check

Weekly Downloads

404,962

Version

3.0.0

License

MIT

Unpacked Size

2.34 kB

Total Files

4

Last publish

Collaborators

  • sindresorhus