JSPM

Found 4919 results for function composition

@bitty/pipe

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

  • v0.4.0
  • 236.28
  • Published

squad

right-to-left function composition

  • v3.0.0
  • 212.41
  • Published

somefilter

Right-to-left conditional function composition. Get some result of filter functions calls.

  • v3.0.1
  • 148.13
  • Published

compose-transducers

This package combines functional composition and transducers to allow high performance operations from arrays and minimal garbage collection.

  • v1.0.8
  • 90.76
  • Published

function-bind

Implementation of Function.prototype.bind

  • v1.1.2
  • 75.78
  • Published

onetime

Ensure a function is only called once

  • v8.0.0
  • 75.45
  • Published

kind-of

Get the native type of a value.

  • v6.0.3
  • 75.07
  • Published

once

Run a function exactly one time

  • v1.4.0
  • 74.57
  • Published

call-bound

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

  • v1.0.4
  • 74.21
  • Published

callsites

Get callsites from the V8 stack trace API

  • v4.2.0
  • 74.10
  • Published

call-bind

Robustly `.call.bind()` a function

  • v1.0.9
  • 74.06
  • Published

reusify

Reuse objects and functions with style

  • v1.1.0
  • 73.98
  • Published

anymatch

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

  • v3.1.3
  • 73.73
  • Published

parent-module

Get the path of the parent module

  • v3.2.0
  • 73.61
  • Published

run-parallel

Run an array of functions in parallel

  • v1.2.0
  • 73.47
  • Published

is-callable

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

  • v1.2.7
  • 73.00
  • Published

p-try

`Start a promise chain

  • v3.0.0
  • 72.80
  • Published

is-generator-function

Determine if a function is a native generator function.

  • v1.1.2
  • 72.67
  • Published

functions-have-names

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

  • v1.2.3
  • 72.30
  • Published

define-lazy-prop

Define a lazily evaluated property on an object

  • v3.0.0
  • 71.85
  • Published

is-async-function

Determine if a function is a native async function.

  • v2.1.1
  • 71.32
  • Published

async-function

A function that returns the normally hidden `AsyncFunction` constructor

  • v1.0.0
  • 71.18
  • Published

is-extendable

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

  • v1.0.1
  • 71.08
  • Published

sweet-compose

Sweet js macro for function composition

  • v2.0.1
  • 71.01
  • Published

boolbase

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

  • v2.0.0
  • 70.60
  • Published

generator-function

A function that returns the normally hidden `GeneratorFunction` constructor

  • v2.0.1
  • 70.47
  • Published

is-generator-fn

Check if something is a generator function

  • v3.0.0
  • 70.14
  • Published

p-cancelable

Create a promise that can be canceled

  • v4.0.1
  • 69.59
  • Published

mimic-function

Make a function mimic another one

  • v5.0.1
  • 68.64
  • Published

has-value

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

  • v2.0.2
  • 68.35
  • 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
  • 67.67
  • Published

debounce

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

  • v3.0.0
  • 67.32
  • Published

one-time

Run the supplied function exactly one time (once)

  • v1.0.0
  • 67.21
  • Published

fn.name

Extract names from functions

  • v1.1.0
  • 66.99
  • Published

throttleit

Throttle a function to limit its execution rate

  • v2.1.0
  • 66.70
  • Published

collection-visit

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

  • v1.0.0
  • 65.64
  • Published

@jsonjoy.com/codegen

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

  • v18.12.0
  • 65.50
  • Published

typical

Isomorphic, functional type-checking for Javascript

  • v7.3.0
  • 65.49
  • Published

object-visit

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

  • v1.0.1
  • 64.95
  • Published

map-visit

Map `visit` over an array of objects.

  • v1.0.0
  • 64.95
  • Published

generate-function

Module that helps you write generated functions in Node

  • v2.3.1
  • 64.94
  • Published

caller-path

Get the path of the caller function

  • v4.0.0
  • 64.56
  • Published

auto-bind

Automatically bind methods to their class instance

  • v5.0.1
  • 64.47
  • Published

fcomp

function composition

  • v1.1.0
  • 63.95
  • Published

caller-callsite

Get the callsite of the caller function

  • v6.0.0
  • 63.52
  • Published

function-composition

A library for readable composing/chaining of function calls

  • v1.0.12
  • 61.52
  • Published

debounce-fn

Debounce a function

  • v6.0.0
  • 61.18
  • 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
  • 60.97
  • Published

async-generator-function

A function that returns the normally hidden `AsyncGeneratorFunction` constructor

  • v1.0.0
  • 60.77
  • Published

@uni-ts/composition

Utils for type-safe function composition in TypeScript.

  • v0.1.0
  • 60.41
  • Published

typed-function

Type checking for JavaScript functions

  • v4.2.2
  • 59.35
  • Published

value-or-function

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

  • v4.0.0
  • 59.26
  • Published

@ndjinn/core

Function composition for the ndjinn node editor. Generally useful for geeking out.

    • v0.4.0
    • 59.23
    • Published

    function-timeout

    Make a synchronous function have a timeout

    • v1.0.2
    • 59.11
    • Published

    util-arity

    Set the length of a function.

    • v1.1.0
    • 59.05
    • Published

    reserved-identifiers

    Provides a list of reserved identifiers for JavaScript

    • v1.2.0
    • 58.71
    • Published

    run-series

    Run an array of functions in series

    • v1.1.9
    • 58.71
    • Published

    koffi

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

    • v2.15.6
    • 58.47
    • Published

    p-all

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

    • v5.0.1
    • 58.03
    • Published

    make-asynchronous

    Make a synchronous function asynchronous by running it in a worker

    • v1.1.0
    • 57.94
    • Published

    last-run

    Capture and retrieve the last time a function was run

    • v2.0.0
    • 57.83
    • Published

    sort-object

    Sort the keys in an object.

    • v3.0.3
    • 57.73
    • Published

    p-memoize

    Memoize promise-returning & async functions

    • v8.0.0
    • 57.40
    • Published

    memoize

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

    • v11.0.0
    • 57.32
    • 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
    • 57.28
    • Published

    @proem/function

    Proem package for function types and composition

    • v0.0.23
    • 56.51
    • Published

    ts-debounce

    TypeScript implementation of debounce

    • v5.0.0
    • 56.46
    • Published

    hooker

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

    • v0.2.3
    • 56.31
    • Published

    arity-n

    Wraps a function with a function of a sertain arity.

    • v1.0.4
    • 55.86
    • Published

    fn-name

    Get the name of a named function

    • v4.0.0
    • 55.77
    • Published

    expr-eval

    Mathematical expression evaluator

    • v2.0.2
    • 54.57
    • Published

    ava

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

    • v7.0.0
    • 54.56
    • Published

    is-generator

    Check whether a value is a generator or generator function

    • v1.0.3
    • 54.48
    • Published

    just-curry-it

    return a curried function

    • v5.3.0
    • 54.12
    • Published

    chain-function

    chain a bunch of functions together into a single call

    • v1.0.1
    • 54.05
    • Published

    fncmp

    Just function composition.

    • v0.1.0
    • 54.04
    • Published

    function1

    Function composition a la Scala's Function1.

    • v0.1.2
    • 54.00
    • Published

    fn-args

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

    • v6.0.0
    • 53.62
    • Published

    with-cache

    Function composition wrapperd that will allow you to cache returned values

    • v2.0.3
    • 53.35
    • Published

    fork-stream

    Fork a stream in multiple directions according to a function

    • v0.0.4
    • 52.86
    • Published

    parse-function

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

    • v5.6.10
    • 52.67
    • Published

    estree-is-function

    check if an AST node is a function of some sort

    • v1.0.0
    • 52.42
    • Published

    is-identifier

    Check if a string is a valid JavaScript identifier

    • v1.0.1
    • 52.26
    • Published

    postcss-functions

    PostCSS plugin for exposing JavaScript functions

    • v4.0.2
    • 51.82
    • Published

    keep-func-props

    Wrap a function without changing its name and other properties

    • v7.1.1
    • 51.34
    • Published

    is-class-hotfix

    Check if function is an ES6 class.

    • v0.0.6
    • 51.27
    • Published

    inspect-function

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

      • v0.4.0
      • 50.84
      • Published

      function.name

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

      • v1.0.14
      • 50.75
      • Published

      get-params

      Get a list of function's argument variable names

      • v0.1.2
      • 50.68
      • 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
        • 50.46
        • Published

        typechecker

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

        • v9.3.0
        • 50.33
        • Published

        expr-eval-fork

        Mathematical expression evaluator fork with exports map, prototype pollution and code injection security fixes

        • v3.0.3
        • 50.11
        • Published

        css-color-function

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

        • v1.3.3
        • 49.95
        • Published

        pdfast

        Fast kernel density estimation library

        • v0.2.0
        • 49.80
        • Published

        eval-estree-expression

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

        • v3.0.1
        • 49.71
        • Published

        is-fn

        Check if a value is a function

        • v3.0.0
        • 49.61
        • Published

        eslint-plugin-ban

        Allows you to bannish some methods or functions.

        • v2.0.0
        • 49.49
        • Published

        postcss-color-function

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

        • v4.1.0
        • 49.24
        • Published

        run-waterfall

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

        • v1.1.7
        • 49.00
        • 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
        • 48.96
        • Published

        theredoc

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

        • v1.0.0
        • 48.90
        • 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
        • 48.75
        • Published

        is-native

        Checks if the given value is a native function.

        • v1.0.1
        • 48.73
        • Published

        list-to-array

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

        • v1.1.0
        • 48.62
        • Published

        to-source-code

        Converts function to its source code.

        • v1.0.2
        • 48.45
        • 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
        • 47.97
        • Published

        is-arrow-function

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

        • v2.0.3
        • 47.91
        • 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
        • 47.75
        • Published

        eslint-plugin-fp

        ESLint rules for functional programming

        • v2.3.0
        • 47.55
        • Published

        evaluate-value

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

        • v2.0.0
        • 47.16
        • Published

        reverse-arguments

        reverse the arguments passed to a function.

        • v1.0.0
        • 47.12
        • Published

        comp-f

        simple function composition function

          • v0.0.0
          • 47.02
          • Published

          over

          JavaScript function overloading framework.

          • v0.0.5
          • 46.93
          • Published

          easy-transform-stream

          Create a transform stream using await instead of callbacks

          • v1.0.1
          • 46.92
          • Published

          fast-bind

          the fastest version of Function#bind I could make

          • v1.0.0
          • 46.86
          • Published

          stopcock

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

          • v1.1.0
          • 46.58
          • 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
          • 46.56
          • Published

          grunt-text-replace

          Replace text in files using strings, regexs or functions.

          • v0.4.0
          • 46.51
          • Published

          djb2a

          DJB2a non-cryptographic hash function

          • v3.0.0
          • 46.37
          • Published

          compose-middleware

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

          • v5.0.1
          • 46.18
          • Published

          just-throttle

          return a throttled function

          • v4.2.0
          • 46.15
          • 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
            • 46.05
            • Published

            try-to-catch

            function try-catch wrapper for promises

            • v4.0.5
            • 45.71
            • Published

            to-factory

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

            • v1.0.0
            • 45.68
            • Published

            contained-periodic-values

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

            • v1.0.0
            • 45.60
            • 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
              • 45.44
              • Published

              lambda-log

              Lightweight logging library for any Node 10+ applications

              • v3.1.0
              • 45.37
              • Published

              flowright

              Function composition from right to left.

              • v0.0.1
              • 45.18
              • Published

              nearest-periodic-value

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

              • v1.2.0
              • 45.16
              • Published

              noop-fn

              It's noop function. It does nothing.

              • v1.0.0
              • 45.14
              • Published

              skipped-periodic-values

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

              • v1.0.1
              • 45.06
              • Published

              ap

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

              • v0.2.0
              • 44.88
              • Published

              weak-napi

              Make weak references to JavaScript Objects.

              • v2.0.2
              • 44.66
              • Published

              chaind

              Lightweight util for function composition

              • v1.0.2
              • 44.59
              • Published

              custom-return

              Generate a function that returns a constant.

              • v1.0.13
              • 44.45
              • Published

              multi-fork

              Fork a stream into multiple streams

              • v0.0.2
              • 44.24
              • Published

              make-runnable

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

              • v1.4.1
              • 44.01
              • Published

              arr-pluck

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

              • v0.1.0
              • 43.81
              • Published

              filter-object

              Filter an object by its keys or values. Returns a copy of an object filtered to have only keys or values that match the given glob patterns.

              • v3.0.0
              • 43.81
              • Published

              load-helpers

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

              • v1.0.1
              • 43.59
              • Published

              rename-function-calls

              Renames functions calls, but leaves function definitions unchanged.

              • v0.1.1
              • 43.54
              • Published

              fulcon

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

              • v2.0.0
              • 43.18
              • Published

              flat-arguments

              Flatten a function's argument. Like, really flatten

              • v1.0.2
              • 43.17
              • Published

              utils

              Fast, generic JavaScript/node.js utility functions.

              • v0.3.1
              • 43.16
              • Published

              function-once

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

              • v3.0.1
              • 43.12
              • Published

              is-class

              Check if function is an ES6 class.

              • v0.0.9
              • 43.06
              • Published

              tamedevil

              Build and evaluate JavaScript strings safely via tagged template literals

              • v0.1.0
              • 43.03
              • Published

              @trufflesuite/chromafi

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

              • v3.0.0
              • 42.75
              • Published

              callable-instance

              Instances of classes which are directly callable as functions.

              • v2.0.0
              • 42.59
              • Published

              to-json-callback

              A safe callback to string serializer

              • v0.1.1
              • 42.49
              • Published

              is-match

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

              • v1.0.0
              • 42.40
              • Published

              glsl-token-functions

              Extract function definitions from an array of GLSL tokens.

              • v1.0.1
              • 42.17
              • 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
              • 41.73
              • 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
              • 41.58
              • 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
              • 41.52
              • Published

              cfn-response

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

              • v1.0.1
              • 41.50
              • Published

              emit-function

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

              • v0.0.2
              • 41.50
              • Published

              make-async-function

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

              • v1.0.0
              • 41.15
              • 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
              • 41.12
              • Published

              zames

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

              • v3.0.0
              • 41.09
              • Published

              eases

              grab bag of easing equations

              • v1.0.8
              • 41.00
              • Published

              ffi-napi

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

              • v4.0.3
              • 41.00
              • Published

              p-tap

              Tap into a promise chain without affecting its value or state

              • v4.0.0
              • 40.97
              • Published

              jest-mock-curry-fn

              [![npm version](https://badge.fury.io/js/jest-mock-curry-fn.svg)](https://badge.fury.io/js/jest-mock-curry-fn)

              • v0.0.3
              • 40.91
              • Published

              fn-annotate

              Get the argument names of a JavaScript function

              • v1.2.0
              • 40.91
              • Published

              ast-monkey-util

              Utility library of AST helper functions

              • v3.1.3
              • 40.79
              • Published

              chickencurry

              Add some chicken curry to your functions

              • v2.2.1
              • 40.75
              • Published

              assert-args

              Validate and format function arguments ( handles types and optionals)

              • v1.2.1
              • 40.73
              • Published

              weak

              Make weak references to JavaScript Objects.

              • v1.0.1
              • 40.64
              • Published

              just-once

              create a function that can only be invoked once

              • v2.2.0
              • 40.62
              • Published

              func-loc

              Retrieve the function location from it reference in NodeJS.

              • v0.1.16
              • 40.62
              • Published

              canvafy

              Make configurable canvas easily with Canvafy

              • v7.2.1
              • 40.45
              • Published

              is-gen-fn

              determine if a function is a generator function

                • v0.0.2
                • 40.33
                • Published

                rename-fn

                Rename a function

                • v2.1.0
                • 40.30
                • Published

                args-js

                Create javascript functions with optional, default and named paramaters.

                • v0.10.12
                • 40.23
                • Published

                run-auto

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

                • v2.0.4
                • 40.01
                • Published

                argx

                Parse function arguments. Useful to implement variadic functions.

                • v4.0.4
                • 40.01
                • Published