Search results

142 packages found

Ensure a function is only called once

published version 7.0.0, 2 years ago2149 dependents licensed under $MIT
361,708,363

Check if something is a generator function

published version 3.0.0, 4 years ago977 dependents licensed under $MIT
116,006,272

Make a function mimic another one

published version 5.0.1, a year ago34 dependents licensed under $MIT
38,719,835

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

published version 5.0.0, 2 years ago305 dependents licensed under $MIT
6,905,747

Make a synchronous function have a timeout

published version 1.0.2, a year ago11 dependents licensed under $MIT
4,979,966

Get the name of a named function

published version 4.0.0, 4 years ago37 dependents licensed under $MIT
3,144,759

Debounce a function

published version 6.0.0, 2 years ago31 dependents licensed under $MIT
4,458,238

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
810,462

Converts function to its source code.

published version 1.0.2, 9 years ago1 dependents licensed under $MIT
651,696

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
50,270

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
62,390

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
62,304

Rename a function

published version 2.1.0, 3 years ago9 dependents licensed under $MIT
36,061

one no-op function to rule them all

published version 1.0.3, 11 years ago18 dependents licensed under $MIT
24,415

Limit the number of function parameters and arguments with ease and flexibility

published version 4.0.0, 2 years ago1 dependents licensed under $MIT
19,616

Create a factory function for generating pseudorandom values drawn from a binary PRNG.

published version 0.2.2, 10 months ago23 dependents licensed under $Apache-2.0
8,654

Check if something is an ES7 async function

published version 1.1.0, 10 years ago7 dependents licensed under $MIT
13,828

◻️ Supreme nothingness

published version 1000.0.0, 7 years ago12 dependents licensed under $MIT
3,566

Memoize a function.

published version 0.2.2, 10 months ago3 dependents licensed under $Apache-2.0
2,919

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

published version 1.0.0, 9 years ago7 dependents licensed under $MIT
1,981