npm 包搜索

搜索 npm 上的 JavaScript 依赖包

搜索 "null" 的结果(共 32 个)
@babel/plugin-syntax-nullish-coalescing-operator

Allow parsing of the nullish-coalescing operator

MIT
null-check

Ensure a path doesn't contain null bytes

MIT
extract-files

A function to recursively extract files and their object paths within a value, replacing them with null in a deep clone without mutating the original value. FileList instances are treated as File instance arrays. Files are typically File and Blob instance

MIT
isobject

Returns true if the value is an object and not an array or null.

MIT
koalas

Coalesce for JavaScript. Returns the first value that is not undefined or null.

MIT
default-compare

Basic sort algorithm that has similar behavior to Array.prototype.sort for null and undefined, but also allows sorting by an object property.

MIT
json-stringify-pretty-compact

The best of both `JSON.stringify(obj)` and `JSON.stringify(obj, null, indent)`.

MIT
null-loader

A webpack loader that returns an empty module.

MIT
dev-null

/dev/null for node streams

eslint-plugin-no-null

ESLint rule to disallow null

MIT
recursive-nullify

Return a clone of a deep object, with all prototypes set to null.

MIT
shq

Quote a string for safe use as a shell argument. Strips null characters.

ISC
black-hole-stream

A writeable stream which silently drops all incoming data similar to /dev/null

MIT
in-array

Return true if a value exists in an array. Faster than using indexOf and won't blow up on null values.

MIT
clean-deep

Remove falsy, empty or nullable values from objects

MIT
has-values

Returns true if any values exist, false if empty. Works for booleans, functions, numbers, strings, nulls, objects and arrays.

MIT
is-null-like

A simple javascript function that will return true if the value is null like (aka undefined or null)

MIT
coalescy

Simple function that return the first non null or undefined argument

MIT
get-first

Pass an array of object paths (e.g. `a.b.c`) and get the first non-undefined value if the property exists, or null if it does not.

MIT
blank-object

A faster alternative to Object.create(null)

MIT
lodash.isnull

The modern build of lodash’s `_.isNull` as a module.

MIT
json-literal

superset of `JSON` adding date, regex, null and octal literals

existential

The missing existential operator for JavaScript. Returns true unless a variable is null or undefined

MIT
is-nil-x

Checks if `value` is `null` or `undefined`.

MIT
is-es6-generators

Check whether a value is a `Generator` or `GeneratorFunction`. The `co` way, more strict checking. Always return boolean true or false, never null or undefined.

MIT
devnull

A simple logger with automatic function detection.

broccoli-null

Sometimes (but rarely), one wants to return a broccoli tree which does nothing. Rather then relying on private API, this plugins achieves this with public API.

MIT