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

null-check Build Status

Ensure a path doesn't contain null bytes

Install

$ npm install --save null-check

Usage

const nullCheck = require('null-check');

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

License

MIT © Sindre Sorhus

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 (1)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org