New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

acc

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

acc

A more generic version of `after` function that accumulates arguments (including errors) from previous invocations.

  • 2.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
10
increased by11.11%
Maintainers
1
Weekly downloads
 
Created
Source

acc

Build Status js-standard-style stable

A more generic version of after function that accumulates arguments (including errors) from previous invocations.

Usage

  var acc = require('acc')

  var fn = acc(2, function (a, b, c) {
    // This function is being invoked after two calls of fn()
    // arguments #=> [[1, 2], [2, 3], [3, 4]]
    console.log('1, 2: ', a[0], a[1])
    console.log('2, 3: ', b[0], b[1])
    console.log('3, 4: ', c[0], c[1])
  })

  fn(1, 2, 3)
  fn(2, 3, 4)

Install

Via npm:

npm i acc

License

See LICENSE file.

FAQs

Package last updated on 10 Aug 2015

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc