New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

twice-call-wrapper

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

twice-call-wrapper

A small wrapper that calls a function twice: fn(fn(args))

latest
Source
npmnpm
Version
1.2.5
Version published
Maintainers
1
Created
Source

twice-call-wrapper

Returns a wrapper that calls a function twice, passing in the result of the first time into the second time.

Installation

$ npm i twice-call-wrapper

Usage

var calledtwice = require('twice-call-wrapper');



var double = v => v * 2; // a simple function that doubles a number

var doubleTwice = calledtwice(double);

console.log(doubleTwice(5)) // quadruples a number because it doubles it and then doubles it again, like double(double(5))

License

MIT Licensed

Contributing

Contribute on the github repository! PRs and Issues are welcome.

Keywords

function

FAQs

Package last updated on 10 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts