
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
Allow to operate promise and non-promise values directly.
Do you have a synchronous function which operates only on scalar values and doesn't understand about promises?
Do you want to operate promises or mix promises with other scalar values thought it?
Fuck it!!!
var fucked_myFunc = fucktion.sync(myFunc);
var rsult = fucked_myFunc("foo", Promise.resolve("bar"), ...);
npm install --save fucktion
var fucktion = require("fucktion");
var fn_promise = fucktion.promise(fn); // Returns promisory.
var fn_cbk = fucktion.cbk(fn); // Returns async function (adds callback parameter).
var fn_sync = fucktion.sync(fn); // Returns "deasync"ed function..
var fucktion = require("fucktion");
var max = fucktion.sync(Math.max);
setTimeout(function(){
console.log("...note that Event Loop was not stopped...");
}, 2000);
console.log ("And the maximum increased by 5 is....");
var m = max(
10 // Scalar value.
, Promise.resolve(23) // Resolved promise.
, 44 // Another scalar value.
, Promise.resolve(7) // Another resolved promise.
, new Promise( // Pending promise.
function(resolve, reject){
setTimeout(function(){
resolve(37)
}, 3000);
}
)
);
console.log(m + 5);
console.log ("Done!!");
Output:
And the maximum increased by 5 is....
...note that Event Loop was not stopped...
49
Done!!
FAQs
Allow to operate promise and non-promise values directly.
The npm package fucktion receives a total of 1 weekly downloads. As such, fucktion popularity was classified as not popular.
We found that fucktion 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.