null-check
Ensure a path doesn't contain null bytes
Last updated 4 years ago by sindresorhus .
MIT · Repository · Bugs · Original npm
$ cnpm 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 (4 years ago)

2 Versions

  • 3.0.0                                ...           4 years ago
  • 1.0.0                                ...           10 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (2)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org