JSPM

Found 4841 results for function *

evaluate-value

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

  • v2.0.0
  • 42.21
  • 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.03
  • Published

multi-fork

Fork a stream into multiple streams

  • v0.0.2
  • 41.96
  • Published

utils

Fast, generic JavaScript/node.js utility functions.

  • v0.3.1
  • 41.95
  • Published

fulcon

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

  • v2.0.0
  • 41.67
  • Published

load-helpers

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

  • v1.0.1
  • 41.66
  • Published

ap

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

  • v0.2.0
  • 41.65
  • Published

arr-pluck

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

  • v0.1.0
  • 41.64
  • Published

is-class

Check if function is an ES6 class.

  • v0.0.9
  • 41.61
  • Published

eases

grab bag of easing equations

  • v1.0.8
  • 41.53
  • Published

@bitty/pipe

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

  • v0.4.0
  • 41.53
  • Published

flat-arguments

Flatten a function's argument. Like, really flatten

  • v1.0.2
  • 41.22
  • Published

zames

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

  • v3.0.0
  • 41.22
  • Published

rename-function-calls

Renames functions calls, but leaves function definitions unchanged.

  • v0.1.1
  • 40.51
  • Published

emit-function

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

  • v0.0.2
  • 40.46
  • Published

just-memoize

An implementation of the memoize technique

  • v2.2.0
  • 40.42
  • Published

to-json-callback

A safe callback to string serializer

  • v0.1.1
  • 40.32
  • Published

promisify-function

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

  • v1.3.2
  • 40.12
  • Published

make-async-function

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

  • v1.0.0
  • 40.04
  • Published

@trufflesuite/chromafi

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

  • v3.0.0
  • 39.87
  • Published

canvafy

Make configurable canvas easily with Canvafy

  • v7.2.1
  • 39.69
  • Published

run-auto

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

  • v2.0.4
  • 39.59
  • Published

args-js

Create javascript functions with optional, default and named paramaters.

  • v0.10.12
  • 39.41
  • Published

assert-args

Validate and format function arguments ( handles types and optionals)

  • v1.2.1
  • 39.40
  • Published

just-once

create a function that can only be invoked once

  • v2.2.0
  • 39.39
  • Published

semver-select

Select an attribute of an object based on semver versioning

  • v1.1.0
  • 39.24
  • 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
  • 39.05
  • Published

make-async-generator-function

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

  • v1.0.0
  • 38.93
  • 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
  • 38.64
  • 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
  • 38.51
  • Published

glsl-token-functions

Extract function definitions from an array of GLSL tokens.

  • v1.0.1
  • 38.51
  • Published

fn-annotate

Get the argument names of a JavaScript function

  • v1.2.0
  • 38.49
  • Published

function-tree

When a function is not enough

  • v3.3.4
  • 38.41
  • Published

rename-fn

Rename a function

  • v2.1.0
  • 38.36
  • Published

ast-monkey-util

Utility library of AST helper functions

  • v3.0.10
  • 38.23
  • 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
  • 38.15
  • Published

is-gen-fn

determine if a function is a generator function

    • v0.0.2
    • 38.14
    • Published

    just-compose

    return a function composed of 2 or more functions

    • v2.3.0
    • 38.02
    • Published

    reamde

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

    • v1.1.0
    • 37.88
    • Published

    ffi-napi

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

    • v4.0.3
    • 37.80
    • Published

    argx

    Parse function arguments. Useful to implement variadic functions.

    • v4.0.4
    • 37.74
    • Published

    typeof-arguments

    Validate the type of arguments passed through the function.

    • v5.1.3
    • 37.60
    • 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
    • 37.49
    • Published

    p-tap

    Tap into a promise chain without affecting its value or state

    • v4.0.0
    • 37.46
    • Published

    cli-graph

    Easily draw function graphs in text mode.

    • v3.2.2
    • 37.45
    • Published

    cbify

    Wraps synchronous functions with a callback-style API

    • v1.0.0
    • 36.90
    • Published

    move-on

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

    • v2.1.9
    • 36.88
    • Published

    @dozerg/no-new

    Convert ES6 class constructor to normal function.

    • v0.0.9
    • 36.88
    • Published

    callable-instance

    Instances of classes which are directly callable as functions.

    • v2.0.0
    • 36.75
    • Published

    function-once

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

    • v3.0.1
    • 36.74
    • Published

    weak

    Make weak references to JavaScript Objects.

    • v1.0.1
    • 36.58
    • Published

    lazy-value

    Create a lazily evaluated value

    • v3.0.0
    • 36.53
    • Published

    just-pipe

    Pass a value through a pipeline of functions

    • v1.0.0
    • 36.50
    • Published

    ofn

    Overloads a function. Makes parameters optional.

    • v1.0.0
    • 36.49
    • Published

    @taiga-ui/polymorpheus

    This is a tiny library for customizing components appearance

    • v4.9.0
    • 36.35
    • Published

    qfn

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

    • v1.0.1
    • 36.32
    • Published

    anysort

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

    • v2.0.0
    • 36.28
    • Published

    cfn-response-async

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

    • v1.0.0
    • 36.25
    • Published

    wfn

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

    • v1.0.0
    • 36.25
    • Published

    ffn

    Turns arrays and values into Filtering Functions.

    • v2.1.0
    • 36.22
    • Published

    tamedevil

    Build and evaluate JavaScript strings safely via tagged template literals

    • v0.0.0-beta.9
    • 36.21
    • Published

    sbo

    Support the Bind Operator

    • v1.1.3
    • 36.13
    • Published

    ordu

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

    • v2.2.0
    • 36.13
    • Published

    lomemo

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

    • v1.0.1
    • 36.12
    • Published

    webext-tools

    Utility functions for Web Extensions, manifest v2 and v3

    • v3.0.0
    • 36.05
    • 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.04
    • Published

    class-chain

    Returns an object’s class and its ancestors.

    • v1.0.0
    • 36.04
    • Published

    trim-call

    Drops undefined arguments from the end of a function call.

    • v1.1.0
    • 35.98
    • 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
    • 35.91
    • Published

    possible-function

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

    • v1.0.1
    • 35.87
    • 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
    • 35.68
    • Published

    vfn

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

    • v1.1.0
    • 35.55
    • Published

    batched-function

    Batch multiple function calls into a single one

    • v2.0.1
    • 35.35
    • Published

    memoize-bind

    Memoized function binding

    • v1.0.3
    • 35.15
    • Published

    sdbm

    SDBM non-cryptographic hash function

    • v2.0.0
    • 35.11
    • 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
    • 35.05
    • Published

    @recursive/assign

    💠 Recursive assign for objects, arrays and more

    • v3.0.1
    • 34.47
    • Published

    pipez

    Function sequencing reloaded

    • v1.1.12
    • 34.34
    • Published

    phc-argon2

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

    • v1.1.4
    • 34.12
    • Published

    gulp-iife

    Wraps JavaScript code within an immediately invoked function expression.

    • v0.4.0
    • 33.84
    • Published

    custom-return

    Generate a function that returns a constant.

    • v1.0.13
    • 33.78
    • Published

    is-require

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

    • v0.0.1
    • 33.69
    • Published

    babel-plugin-explicit-exports-references

    Transforms all internal references to a module's exports such that each reference starts with `module.exports` instead of directly referencing an internal name. This enables easy mocking of specific (exported) functions in Jest with Babel/TypeScript, even

    • v1.0.2
    • 33.66
    • Published

    sort-object-keys2

    Sort an object's keys, including an optional key list

    • v3.0.7
    • 33.51
    • Published

    just-memoize-last

    A memoize implementation that only caches the most recent evaluation

    • v3.2.0
    • 33.37
    • Published

    is-match

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

    • v1.0.0
    • 33.29
    • Published

    p-progress

    Create a promise that reports progress

    • v1.0.0
    • 33.24
    • Published

    @phc/argon2

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

    • v1.0.9
    • 33.18
    • Published

    cpsenize

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

    • v2.0.0
    • 33.15
    • Published

    norma

    A function argument organizer

    • v3.1.1
    • 33.11
    • 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
    • 33.01
    • Published

    phc-bcrypt

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

    • v1.0.8
    • 32.85
    • 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
    • 32.73
    • 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
    • 32.64
    • Published

    @2060.io/ffi-napi

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

    • v4.0.9
    • 32.47
    • 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
    • 32.44
    • Published

    stub-azure-function-context

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

    • v2.5.1
    • 32.41
    • Published

    bindy

    Create array of functions bound to input arrays.

    • v1.0.15
    • 32.30
    • 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
    • 32.17
    • Published

    through-flow

    Stream transform passthrough that calls a function.

    • v1.0.2
    • 32.16
    • Published

    husk-through

    Passthrough chunks via a function.

    • v1.0.2
    • 32.14
    • Published

    stylus-easing

    Easing equations for CSS transitions

    • v1.0.0
    • 32.01
    • Published

    simple-bind-x

    Creates a new function with a bound sequence of arguments. Compliant to 8 arguments.

    • v1.0.3
    • 31.94
    • Published

    upash

    Unified API for password hashing algorithms

    • v1.0.2
    • 31.92
    • Published

    handlebars-ramda-helpers

    Provide powerful data processing capabilities for handlebars, by adding the ramda function as helpers.

      • v1.7.0
      • 31.88
      • Published

      func-loc

      Retrieve the function location from it reference in NodeJS.

      • v0.1.16
      • 31.84
      • Published

      ffi

      A foreign function interface (FFI) for Node.js

      • v2.3.0
      • 31.81
      • Published

      no-op

      one no-op function to rule them all

      • v1.0.3
      • 31.76
      • Published

      @serverless-devs/s

      Serverless devs tool, serverless developer tool, supports Alibaba cloud, AWS, azure, baidu cloud, Huawei cloud, Google cloud and Tencent cloud.

      • v3.1.10
      • 31.67
      • Published

      computed-types

      Runtime validation types for TypeScript.

      • v1.11.2
      • 31.52
      • Published

      expand-json-schema

      Light weight JSON Schema $ref resolver. Expands a JSON Schema by resolving `$ref` references from a mapping of definitions. Does not handle remote references. Has comprehensive unit tests and no dependencies.

      • v1.0.1
      • 31.39
      • Published

      esbuild-cf-functions-plugin

      A plugin to configure ESBuild for building code compatible with CloudFront Functions

      • v1.1.2
      • 31.28
      • Published

      @typeschema/main

      Universal adapter for schema validation

      • v0.14.1
      • 31.18
      • Published

      chickencurry

      Add some chicken curry to your functions

      • v2.2.1
      • 30.79
      • Published

      callable-instance2

      Instances of classes which are directly callable as functions.

      • v2.0.0
      • 30.76
      • Published

      @grandom/fnv1a

      FNV-1a non-cryptographic hash function implementation written in TypeScript.

      • v1.0.7
      • 30.62
      • Published

      fn-getter

      Simple, lazyily evaluated values.

      • v1.0.0
      • 30.59
      • Published

      throttle-typescript

      Helper that returns a throttled function (TypeScript types included - works without TypeScript also)

      • v1.1.0
      • 30.52
      • Published

      gulp-fn

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

      • v0.0.3
      • 30.17
      • Published

      run-local-lambda

      An npm module to help you run and test Lambda functions locally

      • v1.1.1
      • 30.11
      • Published

      better-curry

      Forget Function.bind and func.apply(context, arguments), performance matters! For a better curry!

      • v1.6.0
      • 29.93
      • Published

      mapz

      Functional map with sugar

      • v2.0.1
      • 29.85
      • Published

      delayed

      A collection of setTimeout-related function wranglers

      • v2.0.0
      • 29.85
      • Published

      go-fns

      Utility functions for functions.

      • v1.0.0
      • 29.63
      • Published

      fnjson

      stringify objects containing functions

      • v1.3.0
      • 29.63
      • Published

      assert-function

      Assert that a value is a function

      • v1.0.0
      • 29.57
      • Published

      parse-aws-lambda-name

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

      • v1.0.0
      • 29.38
      • Published

      skeleton-loader

      Loader module for webpack to execute your custom procedure. It works as your custom loader.

      • v2.0.0
      • 29.32
      • Published

      fn-compose

      compose an arbitrary number of functions from right to left.

      • v1.1.0
      • 29.27
      • Published

      metaline

      A tiny language to write mapping functions as strings

        • v1.1.0
        • 28.80
        • Published

        @phc/pbkdf2

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

        • v1.1.14
        • 28.78
        • Published

        squad

        right-to-left function composition

        • v3.0.0
        • 28.52
        • Published

        is-async-fn

        Check if something is an ES7 async function

        • v1.1.0
        • 28.51
        • Published

        math-exp

        Natural exponential function.

        • v1.0.0
        • 28.42
        • Published

        is-real-object

        Returns `true` if a value is any type of object, but not an array. Browserify-ready.

        • v1.0.2
        • 28.29
        • Published

        zaphod

        Clojure's API for JavaScript's Objects

          • v0.2.1
          • 28.18
          • Published

          funcs-js

          Function wrappers for enhanced behavior.

          • v2.0.0
          • 28.14
          • Published

          return-style

          Non-intrusively convert the result of any function or promise to the user's desired style.

          • v3.0.1
          • 28.09
          • Published

          asyncdi

          Async Dependency Injection Library

          • v1.1.0
          • 28.02
          • Published

          function-plot

          A simple 2d function plotter powered by d3

          • v1.25.1
          • 27.91
          • Published

          promise-mem

          Memoizes a promise-returning function

          • v1.0.4
          • 27.91
          • Published

          babel-plugin-func-wrap

          Wrap the whole script in a function — export as CommonJS, ES Modules, IIFE, or a global variable

          • v1.1.0
          • 27.83
          • Published

          vanillas

          Dependency-free, low-level JavaScript function helpers

          • v1.10.0
          • 27.68
          • Published

          ethereum-tx-decoder

          Lightweight utility for decoding function parameters from Ethereum transactions.

          • v3.0.0
          • 27.64
          • Published

          react-debounce-component

          Debounce input, search, render, functions or anything else with <Debounce/> in React and React Native

          • v1.0.0
          • 27.55
          • Published

          jet-validators

          A list common typescript validator-functions and some useful utilities to go with them.

          • v1.4.3
          • 27.42
          • Published

          noop3

          ◻️ Supreme nothingness

          • v1000.0.0
          • 27.37
          • Published

          ctx-core

          ctx-core core library

          • v7.2.32
          • 27.27
          • Published

          protype

          Determine type of property.

          • v0.24.0
          • 27.27
          • Published

          rework-color-function

          Implements Tab Atkins's proposed color function in CSS.

          • v1.2.1
          • 27.26
          • Published

          run-script

          Dead simple script string to function execution with arguments, context and error catching.

          • v0.1.1
          • 27.24
          • Published

          with-local-tmp-dir

          Creates a temporary folder inside cwd, cds inside the folder, runs a function, and removes the folder. Especially useful for testing.

          • v6.0.0
          • 27.17
          • Published

          p-catch-if

          Conditional promise catch handler

          • v3.0.0
          • 26.97
          • Published

          decorator-synchronized

          function decorator which ensures that calls do not run simultaneously

          • v0.6.0
          • 26.91
          • Published

          helper-for-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.2
          • 26.89
          • Published

          grfn

          A tiny (~315B) utility that executes a dependency graph of async functions as concurrently as possible.

          • v3.0.0
          • 26.82
          • Published

          memobind

          A simple javascript utility for function binding memoization.

          • v0.5.0
          • 26.65
          • Published

          i-s

          A module to check whether a JavaScript value is of a certain type

          • v1.2.3
          • 26.62
          • Published

          js-xxx

          前端 JavaScript 常用函数/工具/方法库

          • v2.2.34
          • 26.26
          • Published

          eases-jsnext

          grab bag of easing equations

          • v1.0.10
          • 26.14
          • Published

          math-erf

          Error function.

          • v1.0.0
          • 26.12
          • Published

          funclib

          A powerful javascript functions library!

          • v6.0.6
          • 26.09
          • Published

          json-expression-eval

          json serializable rule engine / boolean expression evaluator

          • v7.1.0
          • 26.03
          • Published