func-it
Returns an empty function if one isn't present. Useful for optional callback parameters inside methods.
Returns an empty function if one isn't present. Useful for optional callback parameters inside methods.
Promisify all function in an object, using [relike][].
Daily usage Helper Functions for Node.js
a pure concat to array fn
Rename a given function. Tries to be cross-platform and guaranteed. Useful when you want to preserve name of bound function. In bonus, allows passing context to the renamed function.
Practical functions for daily usage.
Transform sync, async or generator function to Stream. Correctly handle errors and optional arguments.
XPath functions for XVNode
Run a function if it exists.
Load and use plugins to manipulate objects. Load locally defined plugins, or define a namespace to automatically load plugins from node_modules. Easy to use and extend.
A wrapper of tj/debug for functional programming.
Package for convert string to function without use eval
Wrap a function to only run on non-null values
工具函数扩展,类模块
Easily generate a JSON or markdown list (sorted array) of property names of all enumerable properties, own and inherited, of objects that have function values.
Promisify sync, async or generator function, using [relike][]. Kind of promisify, but lower level. Full compatibility with [co][]4 and passing 100% of its tests.
Extends `letta` to accept and handles more than functions only. Handles all kind of results from `letta`. Basically, creating promise from everything - strings, arrays, objects, functions, generators, generator functions, promises, streams, child processe
Create thunk from async or sync function. Works like `thunkify`.
Create callback api for given sync function. Guarantee that given function (sync or async, no matter) will always have callback api and will handle errors correctly.
Generatorify, basically, everything. You can create generator function from callback-style or synchronous function; sync function that returns child process, stream or observable; directly passed promise, stream or child process.