Socket
Socket
Sign inDemoInstall

process-nextick-args

Package Overview
Dependencies
0
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    process-nextick-args

process.nextTick but always with args


Version published
Weekly downloads
34M
increased by0.99%
Maintainers
1
Install size
3.95 kB
Created
Weekly downloads
 

Package description

What is process-nextick-args?

The process-nextick-args package is a Node.js module that provides a shim for the `process.nextTick()` function, ensuring that arguments passed to the callback are handled correctly. It is particularly useful for maintaining compatibility with older versions of Node.js where the `process.nextTick()` function did not handle additional arguments properly.

What are process-nextick-args's main functionalities?

Shimming process.nextTick

This package allows you to use `process.nextTick()` in a way that ensures additional arguments are passed to the callback function. This is useful when you want to ensure your code works consistently across different Node.js versions.

process.nextTick(callback, arg1, arg2, arg3);

Other packages similar to process-nextick-args

Readme

Source

process-nextick-args

Build Status

npm install --save process-nextick-args

Always be able to pass arguments to process.nextTick, no matter the platform

var pna = require('process-nextick-args');

pna.nextTick(function (a, b, c) {
  console.log(a, b, c);
}, 'step', 3,  'profit');

FAQs

Last updated on 19 Jun 2019

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc