null-check

WebJar for null-check

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

null-check
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

null-check
WebJar for null-check
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/sindresorhus/null-check

Download null-check

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/null-check/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>null-check</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/null-check/
implementation 'org.webjars.npm:null-check:1.0.0'
// https://jarcasting.com/artifacts/org.webjars.npm/null-check/
implementation ("org.webjars.npm:null-check:1.0.0")
'org.webjars.npm:null-check:jar:1.0.0'
<dependency org="org.webjars.npm" name="null-check" rev="1.0.0">
  <artifact name="null-check" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='null-check', version='1.0.0')
)
libraryDependencies += "org.webjars.npm" % "null-check" % "1.0.0"
[org.webjars.npm/null-check "1.0.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

null-check

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 (error) {
	console.log(error);
	//=> 'Path must be a string without null bytes.'
}

Versions

Version
1.0.0