npm 包搜索

搜索 npm 上的 JavaScript 依赖包

搜索 "returns" 的结果(共 153 个)
has-binary

A function that takes anything in javascript and returns true if its argument contains binary data.

MIT
has-binary-data

A function that takes anything in javascript and returns true if its argument contains binary data.

MIT
sorted-object

Returns a copy of an object with its keys sorted

(WTFPL OR MIT)
collection-map

Returns an array of mapped values from an array or object.

MIT
benchmark

A benchmarking library that supports high-resolution timers & returns statistically significant results.

MIT
redeyed

Takes JavaScript code, along with a config and returns the original code with tokens wrapped as configured.

MIT
jsesc

Given some data, jsesc returns the shortest possible stringified & ASCII-safe representation of that data.

MIT
@pnpm/package-bins

Returns bins of a package

MIT
drive-by-path

Returns the drive to which a path belongs

MIT
@pnpm/normalize-registries

Accepts a mapping of registry URLs and returns a mapping with the same URLs but normalized

MIT
boolbase

two functions: One that returns true, one that returns false

ISC
isobject

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

MIT
find-index

finds an item in an array matching a predicate function, and returns its index

MIT
koalas

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

MIT
is-negated-glob

Returns an object with a `negated` boolean and the `!` stripped from negation patterns. Also respects extglobs.

MIT
object.pick

Returns a filtered copy of an object with only the specified keys, similar to `_.pick` from lodash / underscore.

MIT
parsejson

Method that parses a JSON string and returns a JSON object

MIT
get-own-enumerable-property-symbols

Returns an array of all enumerable symbol properties found directly upon a given object

ISC
regex-parser

A module that parses a string as regular expression and returns the parsed value.

MIT
global-modules-path

Returns path to globally installed package

Apache-2.0
human-id

Returns from a pool of 15m human-readable IDs

MIT
tasklist

Wrapper for the Windows `tasklist` command. Returns a list of apps and services with their Process ID (PID) for all tasks running on either a local or a remote computer.

MIT
deprecated-obj

Compares deprecations against a configuration object, and returns a compliant object and violations

MIT
arr-diff

Returns an array with only the unique values from the first array, by excluding all values from additional arrays using strict equality for comparisons.

MIT
is-absolute

Returns true if a file path is absolute. Does not rely on the path module and can be used as a polyfill for node.js native `path.isAbolute`.

MIT
toxic

Mutate keys and values in objects. Returns a new version of the object

MIT
has-value

Returns true if a value exists, false if empty. Works with deeply nested values using object paths.

MIT
is-accessor-descriptor

Returns true if a value has the characteristics of a valid JavaScript accessor descriptor.

MIT
is-descriptor

Returns true if a value has the characteristics of a valid JavaScript descriptor. Works for data descriptors and accessor descriptors.

MIT
@pnpm/bins.resolver

Returns bins of a package

MIT