Search results

169 packages found

Check if something is a generator function

published version 3.0.0, 3 years ago940 dependents licensed under $MIT
91,655,742

Ensure a function is only called once

published version 7.0.0, a year ago2092 dependents licensed under $MIT
307,924,500

Define a lazily evaluated property on an object

published version 3.0.0, 4 years ago632 dependents licensed under $MIT
101,424,341

Make a function mimic another one

published version 5.0.1, 9 months ago15 dependents licensed under $MIT
23,616,803

Get the name of a named function

published version 4.0.0, 4 years ago37 dependents licensed under $MIT
4,618,577

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

published version 5.0.0, 2 years ago297 dependents licensed under $MIT
6,198,501

Make a synchronous function have a timeout

published version 1.0.2, 7 months ago6 dependents licensed under $MIT
3,151,284

Debounce a function

published version 6.0.0, a year ago29 dependents licensed under $MIT
3,220,607

Converts function to its source code.

published version 1.0.2, 9 years ago1 dependents licensed under $MIT
654,316

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

published version 1.0.0, 9 years ago4 dependents licensed under $public domain
710,231

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
684,827

Checks if the given value is a native function.

published version 1.0.1, 9 years ago14 dependents licensed under $MIT
654,650

Check if a value is a function

published version 3.0.0, 4 years ago50 dependents licensed under $MIT
348,947

Constant function.

published version 0.2.2, 4 months ago303 dependents licensed under $Apache-2.0
244,446

determine if a function is a generator function

published version 0.0.2, 3 years ago22 dependents licensed under $MIT
60,244

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

published version 4.0.0, 2 years ago1 dependents licensed under $MIT
68,666

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, 2 years ago1 dependents licensed under $MIT
68,704

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
52,825

Wraps synchronous functions with a callback-style API

published version 1.0.0, 10 years ago2 dependents licensed under $ISC
39,060

Returns an array of names from a module. Includes all enumerable properties with function values, own and inherited.

published version 0.2.0, 10 years ago3 dependents licensed under $MIT
38,052