Skip to content
Ensure a path doesn't contain null bytes
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.editorconfig
.gitattributes
.gitignore
.travis.yml
index.js
license init May 10, 2015
package.json
readme.md
test.js

readme.md

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

You can’t perform that action at this time.