Search results

169 packages found

Ensure a function is only called once

published version 7.0.0, 2 years ago2144 dependents licensed under $MIT
340,550,095

Check if something is a generator function

published version 3.0.0, 4 years ago972 dependents licensed under $MIT
106,127,786

Define a lazily evaluated property on an object

published version 3.0.0, 4 years ago669 dependents licensed under $MIT
127,054,484

Make a function mimic another one

published version 5.0.1, a year ago33 dependents licensed under $MIT
36,108,948

Run promise-returning & async functions concurrently with optional limited concurrency

published version 5.0.0, 2 years ago305 dependents licensed under $MIT
6,494,815

Get the name of a named function

published version 4.0.0, 4 years ago37 dependents licensed under $MIT
3,162,329

Make a synchronous function have a timeout

published version 1.0.2, a year ago11 dependents licensed under $MIT
4,726,058

Debounce a function

published version 6.0.0, 2 years ago31 dependents licensed under $MIT
3,963,488

Converts function to its source code.

published version 1.0.2, 9 years ago1 dependents licensed under $MIT
582,448

Checks if the given value is a native function.

published version 1.0.1, 9 years ago14 dependents licensed under $MIT
534,202

Constant function.

published version 0.2.2, 10 months ago303 dependents licensed under $Apache-2.0
478,623

Parse a function into an object using espree, acorn or babylon parsers. Extensible through Smart Plugins

published version 5.6.10, 5 years ago65 dependents licensed under $MPL-2.0
767,358

module.exports = function (x) { return x }

published version 1.0.0, 9 years ago4 dependents licensed under $public domain
461,739

Check if a value is a function

published version 3.0.0, 4 years ago50 dependents licensed under $MIT
510,198

determine if a function is a generator function

published version 0.0.2, 3 years ago22 dependents licensed under $MIT
42,997

Make a function mimic another one. This is a fork of sindresorhus/mimic-fn, but with CommonJS support.

published version 4.0.0, 3 years ago1 dependents licensed under $MIT
54,516

Wraps synchronous functions with a callback-style API

published version 1.0.0, 11 years ago2 dependents licensed under $ISC
33,420

Ensure a function is only called once. This is a fork of sindresorhus/onetime, but with CommonJS support.

published version 6.0.1-cjs.0, 3 years ago1 dependents licensed under $MIT
54,566

Get arguments of a function, useful for and used in dependency injectors. Works for regular functions, generator functions and arrow functions.

published version 1.0.9, 5 years ago45 dependents licensed under $MIT
42,596

Rename a function

published version 2.1.0, 3 years ago9 dependents licensed under $MIT
30,636