npm 包搜索

搜索 npm 上的 JavaScript 依赖包

搜索 "return" 的结果(共 68 个)
es-module-lexer

Lexes ES modules returning their import/export metadata

MIT
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
esm-env

Uses export conditions to return environment information in a way that works with major bundlers and runtimes.

MIT
require-directory

Recursively iterates over specified directory, require()'ing each file, and returning a nested hash structure containing those modules.

MIT
sorted-object

Returns a copy of an object with its keys sorted

(WTFPL OR MIT)
find-node-modules

Return an array of all parent node_modules directories

MIT
@hapi/pinpoint

Return the filename and line number of the calling function

BSD-3-Clause
@sideway/pinpoint

Return the filename and line number of the calling function

BSD-3-Clause
buffer-equal

return whether two buffers are equal

MIT
collection-map

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

MIT
is-valid-glob

Return true if a value is a valid glob pattern or patterns.

MIT
jasmine-pit

Writing tests for promises in jasmine is kind of a pain in the ass. jasmine-pit makes doing such things a tiny bit easier by providing an augmented version of `it()` (called `pit()`) that allows you to simply return a promise that may eventually assert ex

MIT
ee-first

return the first event in a set of ee/event pairs

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
stackback

return list of CallSite objects from a captured stacktrace

MIT
@pnpm/package-bins

Returns bins of a package

MIT
npm-cache-filename

Given a cache folder and url, return the appropriate cache folder.

ISC
read-installed

Read all the installed packages in a folder, and return a tree structure with all the data.

ISC
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
tryor

return fn() or default value (in case of exception)

breakable

Break out of functions, recursive or not, in a more composable way than by using exceptions explicitly. Non-local return.

MIT
defined

return the first argument that is `!== undefined`

MIT
parents

return all the parent directories for a directory

MIT
shasum

Single function that return the sha1sum. Installing this is just a little bit quicker than reading the crypto documentation.

MIT