# null-check

> Ensure a path doesn't contain null bytes

Latest version **3.0.0** (published 2021-05-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install null-check
pnpm add null-check
yarn add null-check
bun add null-check
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2021-05-03 |
| First published | 2015-05-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Node | >=12 |
| Dependencies | 0 |
| Unpacked size | 2.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 12 |
| Author | Sindre Sorhus |
| Maintainers | sindresorhus |
| Keywords | built-in, core, ponyfill, polyfill, shim, fs, path, null, bytes, check |

## Links

- npm: https://www.npmjs.com/package/null-check
- Repository: https://github.com/sindresorhus/null-check
- Homepage: https://github.com/sindresorhus/null-check#readme
- Issues: https://github.com/sindresorhus/null-check/issues
- Funding: https://github.com/sponsors/sindresorhus
- npm.io page: https://npm.io/package/null-check

## Alternatives

- [base64url](https://npm.io/package/base64url.md) — 6.1M weekly downloads
- [get-installed-path](https://npm.io/package/get-installed-path.md) — 502.9K weekly downloads
- [@uppy/url](https://npm.io/package/@uppy/url.md) — 185.8K weekly downloads
- [@d3fc/d3fc-shape](https://npm.io/package/@d3fc/d3fc-shape.md) — 16.2K weekly downloads
- [localizer](https://npm.io/package/localizer.md) — 226 weekly downloads

## Recent versions

- 3.0.0 (latest) — 2021-05-03
- 2.0.0 — 2015-10-17
- 1.0.0 — 2015-05-10

## README

# null-check

> Ensure a path doesn't contain [null bytes](https://en.wikipedia.org/wiki/Null_character)

## Install

```
$ npm install null-check
```

## Usage

```js
import nullCheck from 'null-check';

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

---
_Source: https://npm.io/package/null-check · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
