JSPM

Found 4837 results for function call

call-bound

Robust call-bound JavaScript intrinsics, using `call-bind` and `get-intrinsic`.

  • v1.0.4
  • 628.61
  • Published

object-visit

Call a specified method on each value in the given object.

  • v1.0.1
  • 327.54
  • Published

call-bind

Robustly `.call.bind()` a function

  • v1.0.8
  • 281.98
  • Published

chain-function

chain a bunch of functions together into a single call

  • v1.0.1
  • 277.96
  • Published

trim-call

Drops undefined arguments from the end of a function call.

  • v1.1.0
  • 275.01
  • Published

make-runnable

Call a module's exported functions directly from the command line, with arguments.

  • v1.4.1
  • 220.78
  • Published

reduce-function-call

Reduce function calls in a string, using a callback

  • v1.0.3
  • 203.84
  • Published

is-require

Tests whether an JavaScript AST node is likely to be a valid `require` call.

  • v0.0.1
  • 166.83
  • Published

callsites

Get callsites from the V8 stack trace API

  • v4.2.0
  • 114.47
  • Published

onetime

Ensure a function is only called once

  • v7.0.0
  • 104.52
  • Published

once

Run a function exactly one time

  • v1.4.0
  • 100.82
  • Published

create-draw-function

Create a WebGL draw call based on user provided data

  • v0.0.1
  • 100.55
  • Published

feint

Make a given function do nothing at its first call

  • v1.0.3
  • 99.10
  • Published

func-delegate

function arguments validate and call chainning

  • v0.4.0
  • 97.77
  • Published

iswitch

Yet another inline switch on npm - call it as a function with a return value

  • v0.0.3
  • 94.08
  • Published

one-time

Run the supplied function exactly one time (once)

  • v1.0.0
  • 91.81
  • Published

kind-of

Get the native type of a value.

  • v6.0.3
  • 89.60
  • Published

run-parallel

Run an array of functions in parallel

  • v1.2.0
  • 89.26
  • Published

has-values

Returns true if any values exist, false if empty. Works for booleans, functions, numbers, strings, nulls, objects and arrays.

  • v2.0.1
  • 89.00
  • Published

reusify

Reuse objects and functions with style

  • v1.1.0
  • 87.72
  • Published

call-function

Invoke function if is it callable and return result otherwise undefined

  • v2.0.0
  • 87.05
  • Published

fn.name

Extract names from functions

  • v1.1.0
  • 86.64
  • Published

is-extendable

Returns true if a value is a plain object, array or function.

  • v1.0.1
  • 84.38
  • Published

generate-function

Module that helps you write generated functions in Node

  • v2.3.1
  • 81.93
  • Published

has-value

Returns true if a value exists, false if empty. Works with deeply nested values using object paths.

  • v2.0.2
  • 81.80
  • Published

runnable-exports

Call exports module from command line.

  • v0.2.0
  • 81.45
  • Published

collection-visit

Visit a method over the items in an object, or map visit over the objects in an array.

  • v1.0.0
  • 79.86
  • Published

estree-is-function

check if an AST node is a function of some sort

  • v1.0.0
  • 78.11
  • Published

map-visit

Map `visit` over an array of objects.

  • v1.0.0
  • 77.66
  • Published

is-generator

Check whether a value is a generator or generator function

  • v1.0.3
  • 76.07
  • Published

ts-debounce

TypeScript implementation of debounce

  • v4.0.0
  • 75.09
  • Published

eva

Functions to create and call functions and evaluate expressions

  • v1.0.0
  • 74.92
  • Published

call-spy

Tiny function for spying on function calls.

  • v3.0.2
  • 74.19
  • Published

arity-n

Wraps a function with a function of a sertain arity.

  • v1.0.4
  • 73.57
  • Published

sort-object

Sort the keys in an object.

  • v3.0.3
  • 73.13
  • Published

make-iterator

Convert an argument into a valid iterator. Based on the `.makeIterator()` implementation in mout https://github.com/mout/mout.

  • v2.0.0
  • 73.12
  • Published

function-bind

Implementation of Function.prototype.bind

  • v1.1.2
  • 71.34
  • Published

is-arrow-function

Determine if a function is an ES6 arrow function or not.

  • v2.0.3
  • 70.98
  • Published

anymatch

Matches strings against configurable strings, globs, regular expressions, and/or functions

  • v3.1.3
  • 70.89
  • Published

typed-function

Type checking for JavaScript functions

  • v4.2.1
  • 70.50
  • Published

run-parallel-limit

Run an array of functions in parallel, but limit the number of tasks executing at the same time

  • v1.1.0
  • 70.47
  • Published

p-try

`Start a promise chain

  • v3.0.0
  • 70.45
  • Published

is-callable

Is this JS value callable? Works with Functions and GeneratorFunctions, despite ES6 @@toStringTag.

  • v1.2.7
  • 70.38
  • Published

parent-module

Get the path of the parent module

  • v3.1.0
  • 70.13
  • Published

is-generator-function

Determine if a function is a native generator function.

  • v1.1.0
  • 69.45
  • Published

define-lazy-prop

Define a lazily evaluated property on an object

  • v3.0.0
  • 69.36
  • Published

util-arity

Set the length of a function.

  • v1.1.0
  • 69.23
  • Published

to-source-code

Converts function to its source code.

  • v1.0.2
  • 68.52
  • Published

boolbase

two functions: One that returns true, one that returns false

  • v1.0.0
  • 68.49
  • Published

functions-have-names

Does this JS environment support the `name` property on functions?

  • v1.2.3
  • 68.47
  • Published

p-memoize

Memoize promise-returning & async functions

  • v8.0.0
  • 68.44
  • Published

fork-stream

Fork a stream in multiple directions according to a function

  • v0.0.4
  • 68.26
  • Published

is-generator-fn

Check if something is a generator function

  • v3.0.0
  • 68.26
  • Published

is-async-function

Determine if a function is a native async function.

  • v2.1.1
  • 67.77
  • Published

openai-tokens-count

OpenAI tokens calculator with function calls, images, and messages in one call

  • v1.0.1
  • 67.71
  • Published

is-native

Checks if the given value is a native function.

  • v1.0.1
  • 67.49
  • Published

p-cancelable

Create a promise that can be canceled

  • v4.0.1
  • 67.27
  • Published

hooker

Monkey-patch (hook) functions for debugging and stuff.

  • v0.2.3
  • 67.15
  • Published

is-class-hotfix

Check if function is an ES6 class.

  • v0.0.6
  • 66.55
  • Published

async-function

A function that returns the normally hidden `AsyncFunction` constructor

  • v1.0.0
  • 66.45
  • Published

mimic-function

Make a function mimic another one

  • v5.0.1
  • 65.03
  • Published

over

JavaScript function overloading framework.

  • v0.0.5
  • 64.71
  • Published

postcss-color-function

PostCSS plugin to transform W3C CSS color function to more compatible CSS.

  • v4.1.0
  • 64.61
  • Published

helper-md

Markdown template helper. Uses remarkable to render markdown in templates. Should work with Handlebars, Lo-Dash or any template engine that supports helper functions.

  • v0.2.2
  • 64.08
  • Published

reverse-arguments

reverse the arguments passed to a function.

  • v1.0.0
  • 63.99
  • Published

debounce

Delay function calls until a set time elapses after the last invocation

  • v2.2.0
  • 63.60
  • Published

ap

Currying in javascript. Like .bind() without also setting `this`.

  • v0.2.0
  • 63.40
  • Published

throttleit

Throttle a function to limit its execution rate

  • v2.1.0
  • 63.33
  • Published

get-params

Get a list of function's argument variable names

  • v0.1.2
  • 63.23
  • Published

caller-path

Get the path of the caller function

  • v4.0.0
  • 62.78
  • Published

to-factory

Convert classes into factory functions so they can be called with or without new.

  • v1.0.0
  • 62.40
  • Published

inspect-function

Inspects a function and returns informations about it (e.g. name, parameters names, parameters and default values, signature)

    • v0.4.0
    • 62.38
    • Published

    compose-middleware

    Compose an array of middleware into a single function for use in Express, Connect, router, etc.

    • v5.0.1
    • 62.36
    • Published

    typical

    Isomorphic, functional type-checking for Javascript

    • v7.3.0
    • 62.21
    • Published

    caller-callsite

    Get the callsite of the caller function

    • v5.0.0
    • 62.16
    • Published

    emit-function

    because i get tired of typing EE.prototype.emit.bind.bind(EE.prototype.emit)

    • v0.0.2
    • 62.13
    • Published

    inspect-parameters-declaration

    Inspects function's parameters declaration and returns information about it (e.g. names, default values, if needs destructuring, destructured parameters names and default values)

      • v0.1.0
      • 62.07
      • Published

      auto-bind

      Automatically bind methods to their class instance

      • v5.0.1
      • 61.98
      • Published

      eases

      grab bag of easing equations

      • v1.0.8
      • 61.21
      • Published

      multi-fork

      Fork a stream into multiple streams

      • v0.0.2
      • 61.02
      • Published

      evaluate-value

      Return a value or an evaluated function (with arguments).

      • v2.0.0
      • 60.87
      • Published

      flat-arguments

      Flatten a function's argument. Like, really flatten

      • v1.0.2
      • 60.50
      • Published

      keep-func-props

      Wrap a function without changing its name and other properties

      • v7.1.1
      • 59.70
      • Published

      css-color-function

      A parser and converter for Tab Atkins's proposed color function in CSS.

      • v1.3.3
      • 59.26
      • Published

      rename-function-calls

      Renames functions calls, but leaves function definitions unchanged.

      • v0.1.1
      • 59.23
      • Published

      @esm2cjs/onetime

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

      • v6.0.1-cjs.0
      • 59.17
      • Published

      theredoc

      A string template tag to strip leading indents from your heredoc-style multi-line strings

      • v1.0.0
      • 59.10
      • Published

      noop-fn

      It's noop function. It does nothing.

      • v1.0.0
      • 58.54
      • Published

      @m59/workerize

      Takes an object of CommonJS module paths that export functions and returns an object of functions that call the module functions in a worker.

      • v1.0.0
      • 57.97
      • Published

      value-or-function

      Normalize a value or function, applying extra args to the function

      • v4.0.0
      • 57.57
      • Published

      helper-markdown

      Markdown template helper. Uses remarkable to render markdown in templates. Should work with Handlebars, Lo-Dash or any template engine that supports helper functions.

      • v1.0.0
      • 57.54
      • Published

      async-ear

      Manage and call async functions

      • v1.0.0
      • 57.10
      • Published

      is-class

      Check if function is an ES6 class.

      • v0.0.9
      • 56.46
      • Published

      for-each-property

      Executes a callback for each property found on a object, with options regarding enumerability (enumerable or non-enumerable) and ownership (inherited or only own properties). It excludes built-in properties from Object and Function prototypes by default,

        • v0.0.4
        • 56.40
        • Published

        run-series

        Run an array of functions in series

        • v1.1.9
        • 56.29
        • Published

        last-run

        Capture and retrieve the last time a function was run

        • v2.0.0
        • 56.23
        • Published

        koffi

        Fast and simple C FFI (foreign function interface) for Node.js

        • v2.14.0
        • 56.23
        • Published

        fast-bind

        the fastest version of Function#bind I could make

        • v1.0.0
        • 56.17
        • Published

        p-all

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

        • v5.0.0
        • 55.88
        • Published

        function-timeout

        Make a synchronous function have a timeout

        • v1.0.2
        • 55.72
        • Published

        @zaeny/mongodb

        Wrap mongodb node.js driver so it expose only two main function `query` and `transact`, so you can seperate pure function in domain business and side-effect (avoiding not dot notation call)

        • v1.1.2
        • 55.71
        • Published

        @jsonjoy.com/codegen

        No-dependencies, low-level, high-performance JIT code generation package for JavaScript

        • v1.0.0
        • 55.63
        • Published

        debounce-fn

        Debounce a function

        • v6.0.0
        • 55.58
        • Published

        make-async-generator-function

        Function that returns an arbitrary async generator function, or undefined if async generator syntax is unsupported.

        • v1.0.0
        • 55.51
        • Published

        for-each-property-deep

        Executes a callback for each property found on a object, recursively on nested properties, with options regarding enumerability (enumerable or non-enumerable) and ownership (inherited or only own properties). It excludes built-in properties from Object an

          • v0.0.3
          • 55.43
          • Published

          parse-code-context

          Fast and simple way to parse code context for use with documentation from code comments. Parses context from a single line of JavaScript, for functions, variable declarations, methods, prototype properties, prototype methods etc.

          • v1.0.0
          • 54.53
          • Published

          memoize

          Memoize functions - An optimization used to speed up consecutive function calls by caching the result of calls with identical input

          • v10.1.0
          • 54.25
          • Published

          expr-eval

          Mathematical expression evaluator

          • v2.0.2
          • 54.05
          • Published

          fn-name

          Get the name of a named function

          • v4.0.0
          • 54.03
          • Published

          make-async-function

          Function that returns an arbitrary `async function`, or undefined if `async function` syntax is unsupported.

          • v1.0.0
          • 54.03
          • Published

          reamde

          Strips javascript code blocks out of README (or any other markdown) files and converts them into function objects.

          • v1.1.0
          • 53.76
          • Published

          cbify

          Wraps synchronous functions with a callback-style API

          • v1.0.0
          • 53.46
          • Published

          ava

          Node.js test runner that lets you develop with confidence.

          • v6.4.1
          • 52.72
          • Published

          fn-annotate

          Get the argument names of a JavaScript function

          • v1.2.0
          • 52.12
          • Published

          just-curry-it

          return a curried function

          • v5.3.0
          • 52.02
          • Published

          load-helpers

          Load helpers with patterns, as an object, key-value pair, or module.

          • v1.0.1
          • 51.66
          • Published

          arr-pluck

          Retrieves the value of a specified property from all elements in the collection.

          • v0.1.0
          • 51.28
          • Published

          promise-fn

          Wrap a function to be able to call it with promises as arguments, i.e. use promises as if they where non-promise values

          • v1.0.0
          • 51.23
          • Published

          utils

          Fast, generic JavaScript/node.js utility functions.

          • v0.3.1
          • 51.22
          • Published

          fulcon

          Clones a function (creates wrapper function), with the same signature as source function

          • v2.0.0
          • 51.13
          • Published

          @esm2cjs/mimic-fn

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

          • v4.0.0
          • 51.04
          • Published

          fn-args

          Get the arguments of a function, arrow function, generator function, async function

          • v6.0.0
          • 50.53
          • Published

          zames

          converts callback-based functions to Promises and apply currying to arguments

          • v3.0.0
          • 50.48
          • Published

          cpsenize

          Wraps synchronous functions with a cps (callback passing style) function

          • v2.0.0
          • 50.12
          • Published

          typechecker

          Utilities to get and check variable types (isString, isPlainObject, isRegExp, etc)

          • v9.3.0
          • 49.63
          • Published

          postcss-functions

          PostCSS plugin for exposing JavaScript functions

          • v4.0.2
          • 49.29
          • Published

          assert-args

          Validate and format function arguments ( handles types and optionals)

          • v1.2.1
          • 48.54
          • Published

          class-chain

          Returns an object’s class and its ancestors.

          • v1.0.0
          • 48.37
          • Published

          parse-function

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

          • v5.6.10
          • 48.21
          • Published

          function-arguments

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

          • v1.0.9
          • 47.94
          • Published

          p-lazy

          Create a lazy promise that defers execution until it's awaited or when `.then()`, `.catch()`, or `.finally()` is called

          • v5.0.0
          • 47.73
          • Published

          fn-getter

          Simple, lazyily evaluated values.

          • v1.0.0
          • 47.68
          • Published

          pdfast

          Fast kernel density estimation library

          • v0.2.0
          • 47.68
          • Published

          reserved-identifiers

          Provides a list of reserved identifiers for JavaScript

          • v1.0.0
          • 47.67
          • Published

          cli-graph

          Easily draw function graphs in text mode.

          • v3.2.2
          • 47.63
          • Published

          eslint-plugin-ban

          Allows you to bannish some methods or functions.

          • v2.0.0
          • 47.53
          • Published

          function.name

          Function name shim (especially for supporting function names in Internet Explorer).

          • v1.0.14
          • 47.46
          • Published

          is-identifier

          Check if a string is a valid JavaScript identifier

          • v1.0.1
          • 47.37
          • Published

          weak

          Make weak references to JavaScript Objects.

          • v1.0.1
          • 47.37
          • Published

          djb2a

          DJB2a non-cryptographic hash function

          • v2.0.0
          • 47.24
          • Published

          eslint-plugin-fp

          ESLint rules for functional programming

          • v2.3.0
          • 47.01
          • Published

          weak-napi

          Make weak references to JavaScript Objects.

          • v2.0.2
          • 46.76
          • Published

          run-waterfall

          Run an array of functions in series, each passing its results to the next function (waterfall)

          • v1.1.7
          • 46.75
          • Published

          argx

          Parse function arguments. Useful to implement variadic functions.

          • v4.0.4
          • 46.61
          • Published

          @firanorg/mollitia-molestias-accusamus

          [![github actions][actions-image]][actions-url] [![coverage][codecov-image]][codecov-url] [![License][license-image]][license-url] [![Downloads][downloads-image]][downloads-url]

          • v10.13.142
          • 46.40
          • Published

          is-fn

          Check if a value is a function

          • v3.0.0
          • 46.19
          • Published

          eval-estree-expression

          Safely evaluate JavaScript (estree) expressions, sync and async.

          • v3.0.0
          • 46.13
          • Published

          typeof-arguments

          Validate the type of arguments passed through the function.

          • v5.1.3
          • 45.89
          • Published

          worker-fn

          worker-fn hides the complexity of communication between the JavaScript main thread and Worker threads, making it easy to call the functions defined in workers.

          • v3.2.1
          • 45.74
          • Published

          wooden-ladder

          🔨 Invokes 'fn1' until 'limit' is reached after that call 'fn2'

          • v1.1.9
          • 45.68
          • Published

          anysort

          Sorting and matching utility using configurable string, glob, regular expression, and/or function matchers

          • v2.0.0
          • 45.51
          • Published

          whence

          Add context awareness to your apps and frameworks by safely evaluating user-defined conditional expressions. Useful for evaluating expressions in config files, prompts, key bindings, completions, templates, and many other user cases.

          • v2.1.0
          • 45.46
          • Published

          move-on

          Creates a queue of sync or async functions with resolve and reject callback.

          • v2.1.9
          • 45.38
          • Published

          callable-instance

          Instances of classes which are directly callable as functions.

          • v2.0.0
          • 45.18
          • Published

          function-once

          Wraps a function so that it's only ever executed once.

          • v3.0.1
          • 45.06
          • Published

          gulp-iife

          Wraps JavaScript code within an immediately invoked function expression.

          • v0.4.0
          • 45.00
          • Published

          make-synchronous

          Make an asynchronous function synchronous

          • v2.0.1
          • 44.82
          • Published

          expr-eval-fork

          Mathematical expression evaluator fork with prototype pollution fix

          • v2.0.2
          • 44.70
          • Published

          easy-transform-stream

          Create a transform stream using await instead of callbacks

          • v1.0.1
          • 44.53
          • Published

          list-to-array

          Simple javascript lib for converting a [comma || space] delimited string to an array

          • v1.1.0
          • 44.45
          • Published

          povtor

          Repeat function call depending on the previous call result and specified conditions.

          • v1.1.0
          • 44.22
          • Published

          @dramaorg/delectus-culpa-reprehenderit

          [![github actions][actions-image]][actions-url] [![coverage][codecov-image]][codecov-url] [![dependency status][deps-svg]][deps-url] [![dev dependency status][dev-deps-svg]][dev-deps-url] [![License][license-image]][license-url] [![Downloads][downloads-im

          • v3.5.94
          • 44.14
          • Published

          lambda-log

          Lightweight logging library for any Node 10+ applications

          • v3.1.0
          • 43.93
          • Published

          ofn

          Overloads a function. Makes parameters optional.

          • v1.0.0
          • 43.91
          • Published

          contained-periodic-values

          Find how many values of a discrete periodic function are contained in an interval.

          • v1.0.0
          • 43.80
          • Published

          just-throttle

          return a throttled function

          • v4.2.0
          • 43.77
          • Published

          nearest-periodic-value

          Find the nearest value of a discrete periodic function, given a point.

          • v1.2.0
          • 43.65
          • Published

          try-to-catch

          function try-catch wrapper for promises

          • v3.0.1
          • 43.58
          • Published

          qfn

          Qualified Function. Wraps a function so it only gets executed if a condition is true.

          • v1.0.1
          • 43.56
          • Published

          wfn

          Gives a wrapper function the properties and string value of its underlying function.

          • v1.0.0
          • 43.53
          • Published

          skipped-periodic-values

          Given a point and a distance, determine how many periodic values were skipped.

          • v1.0.1
          • 43.45
          • Published

          stopcock

          Limit the execution rate of a function using the token bucket algorithm

          • v1.1.0
          • 43.44
          • Published

          possible-function

          Defines fallback behavior in case a variable is not a function. Perfect for optional callback parameters.

          • v1.0.1
          • 43.39
          • Published

          grunt-text-replace

          Replace text in files using strings, regexs or functions.

          • v0.4.0
          • 43.22
          • Published

          @esm2cjs/p-cancelable

          Create a promise that can be canceled. This is a fork of sindresorhus/p-cancelable, but with CommonJS support.

          • v4.0.1
          • 43.15
          • Published

          assert-function

          Assert that a value is a function

          • v1.0.0
          • 42.89
          • Published

          cfn-response

          A module for sending responses from lambda-funciton backed custom resources in AWS CloudFormation

          • v1.0.1
          • 42.80
          • Published

          no-op

          one no-op function to rule them all

          • v1.0.3
          • 42.68
          • Published

          fnjson

          stringify objects containing functions

          • v1.3.0
          • 42.59
          • Published

          unbounded

          Function.prototype.bind replacement that provides an `unbounded` hidden property on the returned bounded function, that contains the original unbounded function

          • v6.3.1
          • 42.30
          • Published

          anyargs

          A small utility module that converts function arguments to an object for use within the function based on a supplied metadata object. This allows parameters to be passed in any order, making the resultant function very flexible.

          • v1.0.5
          • 42.21
          • Published

          is-match

          Create a matching function from a glob pattern, regex, string, array, object or function.

          • v1.0.0
          • 41.81
          • Published

          p-progress

          Create a promise that reports progress

          • v1.0.0
          • 41.58
          • Published

          gulp-fn

          gulp-fn - gulp plugin used in order to run custom callback functions per file

          • v0.0.3
          • 41.56
          • Published

          @bitty/pipe

          A pipe function to perform function composition in LTR (Left To Right) direction.

          • v0.4.0
          • 41.54
          • Published

          run-auto

          Determine the best order for running async functions, and run them

          • v2.0.4
          • 41.53
          • Published

          parse-aws-lambda-name

          Parse an AWS Lambda function name into a name and a qualifier

          • v1.0.0
          • 41.34
          • Published

          noop3

          ◻️ Supreme nothingness

          • v1000.0.0
          • 41.21
          • Published

          api-check

          Validate the api to your functions to help people use them correctly. This is pretty much React's propTypes without React.

          • v7.5.5
          • 41.11
          • Published

          stub-azure-function-context

          Provides an object similar to Function Runtime's context for use in unit testing

          • v2.5.1
          • 40.61
          • Published

          just-memoize

          An implementation of the memoize technique

          • v2.2.0
          • 40.60
          • Published

          canvafy

          Make configurable canvas easily with Canvafy

          • v7.2.1
          • 40.56
          • Published

          have

          Have your arguments, and validate it too. -- Slick arguments validator for all your js functions.

          • v0.4.0
          • 40.47
          • Published

          @zitterorg/magni-eos

          [![github actions][actions-image]][actions-url] [![coverage][codecov-image]][codecov-url] [![dependency status][deps-svg]][deps-url] [![dev dependency status][dev-deps-svg]][dev-deps-url] [![License][license-image]][license-url] [![Downloads][downloads-im

          • v5.8.60
          • 40.44
          • Published

          promisify-function

          Turn a callback-style function into a function that returns a promise

          • v1.3.2
          • 40.37
          • Published