npm 包搜索

搜索 npm 上的 JavaScript 依赖包

搜索 "[]" 的结果(共 31 个)
reduce

A better [].reduce

MIT
hybridify

Hybridify. Hybrids. Create sync or async function to support both promise and callback-style APIs in same time. Using the power of [relike][].

MIT
tmp-filepath

Generate temporary filepath string (without writing to disk). Using scaleable, secure and fast cross-platform [cuid][] package

MIT
array-map

`[].map(f)` for older browsers

MIT
handle-arguments

Get separately non-callback arguments in `.arguments` and the last argument if it [is-callback-function][] in `.callback`. It also works like [sliced][], but returns object with `.arguments` and `.callback` properties.

MIT
typeof

Node module. typeOf('a string') == 'string', typeOf([]) == 'array', etc.. Also supports named functions detections aka javascript classes

get-fn-name

Get function name with strictness and correctness in mind. Also works for arrow functions and getting correct name of bounded functions. Powered by [fn-name][].

MIT
always-done

Handle completion and errors with elegance! Support for streams, callbacks, promises, child processes, async/await and sync functions. A drop-in replacement for [async-done][] - pass 100% of its tests plus more

MIT
rollup-plugin-replace

[![](https://img.shields.io/npm/v/rollup-plugin-replace.svg?style=flat)](https://www.npmjs.com/package/rollup-plugin-replace)

MIT
md4x

[![npm version][npm version]][npm link] ![][wasm size]

MIT
assert-kindof

Check native type of value and throw AssertionError if not okey. Clean stack traces. Simplicity. Built on [is-kindof][].

MIT
is-callback-function

Returns true if function is a callback. Checks its name is one of [common-callback-names][] - callback, cb, cb_, callback_, next, done, they can be customized, these are default.

MIT
create-readdir-stream

Streaming `fs.readdir`, extensible with smart plugins. No recursion and no globs by default - [use][] plugins. Does not stat and doesn't read the filepaths - use plugins. It just push [vinyl][] files to stream. Follows signature and semantics of `fs.creat

MIT
execa-pro

Thin layer on top of [execa][] that allows executing multiple commands in series

Apache-2.0
try-catch-core

Low-level package to handle completion and errors of sync or asynchronous functions, using [once][] and [dezalgo][] libs. Useful for and used in higher-level libs such as [always-done][] to handle completion of anything.

MIT
clean-stacktrace-relative-paths

Meant to be used with [clean-stacktrace][] as mapper function. Makes absolute paths inside stack traces to relative paths.

MIT
array-reduce

`[].reduce()` for old browsers

is-kindof

Check type of given javascript value. Support promises, generators, streams, and native types. Built on [kind-of][] lib.

MIT
fast-shallow-equal

[![][npm-badge]][npm-url] [![][travis-badge]][travis-url]

@tunnckocore/release-cli

Publish new project to NPM following Conventional Commits specification and SemVer. Uses [git-commits-since][] for detecting git commits since last SemVer tag and [detect-next-version][] for what next version bump should be.

Apache-2.0
hela-config-tunnckocore

Shareable Config (preset of tasks) for [hela][] task runner

Apache-2.0
is-tree-shakable

![](https://img.shields.io/npm/v/is-tree-shakable)

MIT
@lona/svg-model

![](./docs/logo.png)

MIT
kind-of-extra

Additional functionality to [kind-of][] type check utility. Support promises, generators, streams, errors.

MIT
try-catch-callback

try/catch block with a callback, used in [try-catch-core][]. Use it when you don't care about asyncness so much and don't want guarantees. If you care use [try-catch-core][].

MIT
waka

![](/waka.png)

vine-ui

![](/scripts/vine.jpg)

MIT
lazy-arrayify

We are lazy, also [lazy-cache][]d and [browserify][]-ready - just arrayify, falsey values returns empty array. In bonus with `.isArray` method.

MIT
load-deps

Just load devDependencies of the current project or any other dependencies. Useful for any node.js app that needs to load plugins from node_modules. 15-20x times faster alternative to [load-plugins][] and [gulp-load-plugins][].

MIT