
Security News
OWASP 2025 Top 10 Adds Software Supply Chain Failures, Ranked Top Community Concern
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.
Limit dangerous function calls.
$ npm install call-once
// Simple usage
var callOnce = require( 'call-once' )
var wrapped = callOnce( function( n ){
setupNuclearTestPlant()
return true
})
wrapped() // => true
wrapped() // => undefined
// Blocking and unblocking wrapped functions
var callOnce = require( 'call-once' )
var setup = callOnce( function( n ){
setupNuclearTestPlant()
return true
})
powerPlant.on( 'constructed', function(){
setup()
})
president.on( 'cancel_project', function(){
setup.block() // will prevent the function from being called at all
})
president.on( 'changed_mind', function(){
setup.unblock() // will allow the function to be called again
})
Note: in reality this is more useful for stuff like promise resolutions on a timeout
FAQs
Call a function once and no more
The npm package call-once receives a total of 166 weekly downloads. As such, call-once popularity was classified as not popular.
We found that call-once demonstrated a not healthy version release cadence and project activity because the last version was released 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.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.