JSPM

Found 4839 results for function call

value-or-function

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

  • v4.0.0
  • 57.53
  • 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.45
  • Published

koffi

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

  • v2.14.0
  • 56.42
  • 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.30
    • Published

    fast-bind

    the fastest version of Function#bind I could make

    • v1.0.0
    • 56.26
    • Published

    last-run

    Capture and retrieve the last time a function was run

    • v2.0.0
    • 56.17
    • Published

    run-series

    Run an array of functions in series

    • v1.1.9
    • 56.17
    • Published

    @jsonjoy.com/codegen

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

    • v1.0.0
    • 56.16
    • Published

    is-class

    Check if function is an ES6 class.

    • v0.0.9
    • 56.13
    • Published

    make-async-generator-function

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

    • v1.0.0
    • 56.01
    • Published

    p-all

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

    • v5.0.0
    • 55.74
    • Published

    function-timeout

    Make a synchronous function have a timeout

    • v1.0.2
    • 55.70
    • 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.52
      • Published

      debounce-fn

      Debounce a function

      • v6.0.0
      • 55.51
      • 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.47
      • 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.66
      • Published

      make-async-function

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

      • v1.0.0
      • 54.36
      • 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.23
      • Published

      reamde

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

      • v1.1.0
      • 54.07
      • Published

      expr-eval

      Mathematical expression evaluator

      • v2.0.2
      • 53.95
      • Published

      fn-name

      Get the name of a named function

      • v4.0.0
      • 53.86
      • Published

      cbify

      Wraps synchronous functions with a callback-style API

      • v1.0.0
      • 53.23
      • Published

      ava

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

      • v6.4.1
      • 52.58
      • Published

      just-curry-it

      return a curried function

      • v5.3.0
      • 52.11
      • Published

      fn-annotate

      Get the argument names of a JavaScript function

      • v1.2.0
      • 52.03
      • Published

      load-helpers

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

      • v1.0.1
      • 51.57
      • Published

      fulcon

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

      • v2.0.0
      • 51.42
      • Published

      utils

      Fast, generic JavaScript/node.js utility functions.

      • v0.3.1
      • 51.39
      • Published

      arr-pluck

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

      • v0.1.0
      • 51.16
      • 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.01
      • 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
      • 50.78
      • Published

      fn-args

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

      • v6.0.0
      • 50.51
      • Published

      zames

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

      • v3.0.0
      • 50.46
      • Published

      cpsenize

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

      • v2.0.0
      • 49.66
      • Published

      typechecker

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

      • v9.3.0
      • 49.55
      • Published

      postcss-functions

      PostCSS plugin for exposing JavaScript functions

      • v4.0.2
      • 49.17
      • Published

      class-chain

      Returns an object’s class and its ancestors.

      • v1.0.0
      • 48.74
      • Published

      assert-args

      Validate and format function arguments ( handles types and optionals)

      • v1.2.1
      • 48.30
      • Published

      parse-function

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

      • v5.6.10
      • 48.10
      • 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.77
      • Published

      pdfast

      Fast kernel density estimation library

      • v0.2.0
      • 47.71
      • Published

      reserved-identifiers

      Provides a list of reserved identifiers for JavaScript

      • v1.0.0
      • 47.63
      • Published

      eslint-plugin-ban

      Allows you to bannish some methods or functions.

      • v2.0.0
      • 47.61
      • Published

      cli-graph

      Easily draw function graphs in text mode.

      • v3.2.2
      • 47.60
      • Published

      weak

      Make weak references to JavaScript Objects.

      • v1.0.1
      • 47.51
      • Published

      function.name

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

      • v1.0.14
      • 47.47
      • 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.45
      • Published

      fn-getter

      Simple, lazyily evaluated values.

      • v1.0.0
      • 47.37
      • Published

      is-identifier

      Check if a string is a valid JavaScript identifier

      • v1.0.1
      • 47.30
      • Published

      djb2a

      DJB2a non-cryptographic hash function

      • v2.0.0
      • 47.17
      • Published

      weak-napi

      Make weak references to JavaScript Objects.

      • v2.0.2
      • 46.96
      • Published

      eslint-plugin-fp

      ESLint rules for functional programming

      • v2.3.0
      • 46.87
      • Published

      run-waterfall

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

      • v1.1.7
      • 46.68
      • Published

      wooden-ladder

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

      • v1.1.9
      • 46.47
      • Published

      eval-estree-expression

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

      • v3.0.0
      • 46.29
      • 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.20
      • Published

      is-fn

      Check if a value is a function

      • v3.0.0
      • 46.05
      • Published

      argx

      Parse function arguments. Useful to implement variadic functions.

      • v4.0.4
      • 45.87
      • Published

      typeof-arguments

      Validate the type of arguments passed through the function.

      • v5.1.3
      • 45.83
      • Published

      move-on

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

      • v2.1.9
      • 45.70
      • Published

      gulp-iife

      Wraps JavaScript code within an immediately invoked function expression.

      • v0.4.0
      • 45.65
      • 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.55
      • 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.49
      • Published

      callable-instance

      Instances of classes which are directly callable as functions.

      • v2.0.0
      • 45.47
      • Published

      anysort

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

      • v2.0.0
      • 45.18
      • Published

      function-once

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

      • v3.0.1
      • 44.94
      • Published

      make-synchronous

      Make an asynchronous function synchronous

      • v2.0.1
      • 44.76
      • Published

      expr-eval-fork

      Mathematical expression evaluator fork with prototype pollution fix

      • v2.0.2
      • 44.71
      • Published

      easy-transform-stream

      Create a transform stream using await instead of callbacks

      • v1.0.1
      • 44.70
      • Published

      ofn

      Overloads a function. Makes parameters optional.

      • v1.0.0
      • 44.32
      • Published

      list-to-array

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

      • v1.1.0
      • 44.31
      • Published

      povtor

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

      • v1.1.0
      • 44.18
      • Published

      contained-periodic-values

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

      • v1.0.0
      • 44.01
      • 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
      • 43.94
      • Published

      just-throttle

      return a throttled function

      • v4.2.0
      • 43.94
      • Published

      possible-function

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

      • v1.0.1
      • 43.90
      • Published

      lambda-log

      Lightweight logging library for any Node 10+ applications

      • v3.1.0
      • 43.88
      • Published

      wfn

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

      • v1.0.0
      • 43.82
      • Published

      qfn

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

      • v1.0.1
      • 43.76
      • Published

      nearest-periodic-value

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

      • v1.2.0
      • 43.69
      • Published

      skipped-periodic-values

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

      • v1.0.1
      • 43.59
      • Published

      try-to-catch

      function try-catch wrapper for promises

      • v3.0.1
      • 43.59
      • Published

      stopcock

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

      • v1.1.0
      • 43.53
      • Published

      grunt-text-replace

      Replace text in files using strings, regexs or functions.

      • v0.4.0
      • 43.30
      • 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.14
      • Published

      cfn-response

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

      • v1.0.1
      • 42.88
      • Published

      assert-function

      Assert that a value is a function

      • v1.0.0
      • 42.76
      • Published

      no-op

      one no-op function to rule them all

      • v1.0.3
      • 42.64
      • Published

      fnjson

      stringify objects containing functions

      • v1.3.0
      • 42.55
      • 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.54
      • Published

      parse-aws-lambda-name

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

      • v1.0.0
      • 42.33
      • 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.09
      • Published

      @bitty/pipe

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

      • v0.4.0
      • 41.74
      • Published

      is-match

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

      • v1.0.0
      • 41.58
      • Published

      p-progress

      Create a promise that reports progress

      • v1.0.0
      • 41.47
      • Published

      gulp-fn

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

      • v0.0.3
      • 41.38
      • Published

      noop3

      ◻️ Supreme nothingness

      • v1000.0.0
      • 41.13
      • Published

      run-auto

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

      • v2.0.4
      • 40.75
      • Published

      just-memoize

      An implementation of the memoize technique

      • v2.2.0
      • 40.49
      • 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
      • 40.46
      • Published

      stub-azure-function-context

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

      • v2.5.1
      • 40.43
      • 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.39
      • Published

      to-json-callback

      A safe callback to string serializer

      • v0.1.1
      • 40.31
      • Published

      promisify-function

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

      • v1.3.2
      • 40.18
      • Published

      canvafy

      Make configurable canvas easily with Canvafy

      • v7.2.1
      • 40.07
      • Published

      stepfunctions-localhost

      A wrapper for AWS's [Step Functions Local](https://docs.aws.amazon.com/step-functions/latest/dg/welcome.html).

      • v0.2.0
      • 39.70
      • Published

      ffi

      A foreign function interface (FFI) for Node.js

      • v2.3.0
      • 39.45
      • Published

      @trufflesuite/chromafi

      🦅 cli syntax highlighting: any function - any object - 176 languages

      • v3.0.0
      • 39.42
      • Published

      have

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

      • v0.4.0
      • 39.34
      • Published

      just-once

      create a function that can only be invoked once

      • v2.2.0
      • 39.32
      • Published

      args-js

      Create javascript functions with optional, default and named paramaters.

      • v0.10.12
      • 39.28
      • Published

      semver-select

      Select an attribute of an object based on semver versioning

      • v1.1.0
      • 39.23
      • Published

      math-exp

      Natural exponential function.

      • v1.0.0
      • 39.18
      • Published

      memobind

      A simple javascript utility for function binding memoization.

      • v0.5.0
      • 39.12
      • Published

      function-tree

      When a function is not enough

      • v3.3.4
      • 39.08
      • Published

      callifexists

      A simple utility to call a function if it exists

      • v1.1.1
      • 38.93
      • Published

      is-gen-fn

      determine if a function is a generator function

        • v0.0.2
        • 38.74
        • Published

        glsl-token-functions

        Extract function definitions from an array of GLSL tokens.

        • v1.0.1
        • 38.72
        • Published

        shuv

        Partial application. Shuv args around the place.

        • v1.1.0
        • 38.61
        • Published

        rename-fn

        Rename a function

        • v2.1.0
        • 38.23
        • Published

        just-compose

        return a function composed of 2 or more functions

        • v2.3.0
        • 38.13
        • Published

        callable-instance2

        Instances of classes which are directly callable as functions.

        • v2.0.0
        • 38.04
        • Published

        ast-monkey-util

        Utility library of AST helper functions

        • v3.0.10
        • 38.04
        • Published

        make-command-runnable

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

        • v1.2.0
        • 37.94
        • Published

        deeply

        A toolkit for deep structure manipulations, provides deep merge/clone functionality out of the box, and exposes hooks and custom adapters for more control and greater flexibility.

        • v3.1.0
        • 37.83
        • Published

        ffi-napi

        A foreign function interface (FFI) for Node.js, N-API style

        • v4.0.3
        • 37.77
        • Published

        chickencurry

        Add some chicken curry to your functions

        • v2.2.1
        • 37.74
        • Published

        p-tap

        Tap into a promise chain without affecting its value or state

        • v4.0.0
        • 37.67
        • Published

        set-timeout

        Delay the call of a function in a given context.

        • v0.1.0
        • 37.32
        • Published

        math-erf

        Error function.

        • v1.0.0
        • 36.88
        • Published

        @dozerg/no-new

        Convert ES6 class constructor to normal function.

        • v0.0.9
        • 36.79
        • Published

        rework-color-function

        Implements Tab Atkins's proposed color function in CSS.

        • v1.2.1
        • 36.78
        • Published

        method-names

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

        • v0.2.0
        • 36.69
        • Published

        ava-spec

        Drop-in BDD helpers for AVA test runner 🌠

        • v1.1.1
        • 36.67
        • Published

        lazy-value

        Create a lazily evaluated value

        • v3.0.0
        • 36.65
        • Published

        just-pipe

        Pass a value through a pipeline of functions

        • v1.0.0
        • 36.60
        • Published

        @taiga-ui/polymorpheus

        This is a tiny library for customizing components appearance

        • v4.9.0
        • 36.36
        • Published

        negate

        negates a function

        • v1.0.0
        • 36.30
        • Published

        cfn-response-async

        An async/await module for sending responses from lambda-funciton backed custom resources in AWS CloudFormation

        • v1.0.0
        • 36.24
        • Published

        ffn

        Turns arrays and values into Filtering Functions.

        • v2.1.0
        • 36.20
        • Published

        tamedevil

        Build and evaluate JavaScript strings safely via tagged template literals

        • v0.0.0-beta.8
        • 36.16
        • Published

        pfn

        Possible Function. Wraps what might be a function, with fallback behavior in case it’s not. Perfect for use in functions that accept optional callback arguments.

        • v1.1.0
        • 36.15
        • Published

        sbo

        Support the Bind Operator

        • v1.1.3
        • 36.10
        • Published

        should-quote

        A utility function to detect if a string should be wrapped in quotes to work as an object key

        • v1.0.0
        • 36.03
        • Published

        fn-compose

        compose an arbitrary number of functions from right to left.

        • v1.1.0
        • 35.95
        • Published

        lomemo

        Lodash's memoize function, but in a much smaller package than lodash.memoize's.

        • v1.0.1
        • 35.88
        • Published

        webext-tools

        Utility functions for Web Extensions, manifest v2 and v3

        • v3.0.0
        • 35.77
        • Published

        vfn

        Creates a variadic function, with a “rest parameter” that’s NOT at the end.

        • v1.1.0
        • 35.65
        • Published

        ordu

        Execute functions in a configurable order, modifying a shared data structure.

        • v2.2.0
        • 35.59
        • Published

        memoize-bind

        Memoized function binding

        • v1.0.3
        • 35.50
        • Published

        wtfork

        Subscribe to and publish events between parent and child node processes using the standard node event emitter api or call parent methods directly from the child process and vice versa.

        • v0.3.0
        • 35.36
        • Published

        is-async-fn

        Check if something is an ES7 async function

        • v1.1.0
        • 35.28
        • Published

        worker-function

        Create functions executed within a web worker and return promises

        • v2.0.2
        • 35.17
        • Published

        sdbm

        SDBM non-cryptographic hash function

        • v2.0.0
        • 35.11
        • Published

        batched-function

        Batch multiple function calls into a single one

        • v2.0.1
        • 35.11
        • Published

        zaphod

        Clojure's API for JavaScript's Objects

          • v0.2.1
          • 35.11
          • Published

          @yeskiy/yrpc

          Yeskiy RPC (Remote Procedure Call) with Blackjack and Functions!

          • v0.0.3
          • 34.99
          • Published

          squad

          right-to-left function composition

          • v3.0.0
          • 34.86
          • Published

          @recursive/assign

          💠 Recursive assign for objects, arrays and more

          • v3.0.1
          • 34.84
          • Published

          promy

          Conditional promisify

          • v1.0.2
          • 34.74
          • Published

          async-subscribe

          Emit events when you call an asynchronous function

          • v1.0.0
          • 34.70
          • Published

          react-auto-bind

          Auto bind methods to their class instance excluding React Lifecycle Methods

          • v0.4.2
          • 34.68
          • Published

          pipez

          Function sequencing reloaded

          • v1.1.12
          • 34.41
          • Published

          ethereum-tx-decoder

          Lightweight utility for decoding function parameters from Ethereum transactions.

          • v3.0.0
          • 34.29
          • Published

          startinterval2

          Calls a function immediately and repeatedly after a fixed delay

          • v1.0.1
          • 34.19
          • Published

          phc-argon2

          Node.JS Argon2 password hashing algorithm following the PHC string format

          • v1.1.4
          • 34.12
          • Published