
Product
Introducing Reachability for PHP
Reachability analysis for PHP is now available in experimental, helping teams identify which vulnerabilities are actually exploitable.
any-signal
Advanced tools
Combines an array of AbortSignals into a single signal that is aborted when any signal is
Combines an array of AbortSignals into a single signal that is aborted when any signal is
Similar to AbortSignal.any
except the returned promise has a .clear method that removes all event
listeners added to passed signals preventing memory leaks.
At the time of writing at least, AbortSignal.any leaks memory in Node.js
and Deno environments:
import { anySignal } from 'any-signal'
const userController = new AbortController()
// Abort after 1 second
const timeoutSignal = AbortSignal.timeout(1000)
const combinedSignal = anySignal([userController.signal, timeoutSignal])
combinedSignal.addEventListener('abort', () => console.log('Abort!'))
try {
// The user or the timeout can now abort the action
await performSomeAction({ signal: combinedSignal })
} finally {
// Clear will clean up internal event handlers
combinedSignal.clear()
}
$ npm i any-signal
<script> tagLoading this module through a script tag will make its exports available as AnySignal in the global namespace.
<script src="https://unpkg.com/any-signal/dist/index.min.js"></script>
The anySignal function is taken from a comment by jakearchibald
Licensed under either of
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
FAQs
Combines an array of AbortSignals into a single signal that is aborted when any signal is
The npm package any-signal receives a total of 172,987 weekly downloads. As such, any-signal popularity was classified as popular.
We found that any-signal demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
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.

Product
Reachability analysis for PHP is now available in experimental, helping teams identify which vulnerabilities are actually exploitable.

Product
Export Socket alert data to your own cloud storage in JSON, CSV, or Parquet, with flexible snapshot or incremental delivery.

Research
/Security News
Bitwarden CLI 2026.4.0 was compromised in the Checkmarx supply chain campaign after attackers abused a GitHub Action in Bitwarden’s CI/CD pipeline.