
Product
PHP and Composer Support Is Now in Beta
Socket’s PHP and Composer support is now in Beta for all customers, with PHP reachability analysis generally available.
$ npm install --save cardigan
const {serialize} = require('cardigan');
const add = serialize((a, b) => a + b);
const subtract = serialize((a, b) => a - b);
// Do something with serialized functions (e.g. send to supporting FaaS, save to disk)
PROTIP: Functions should not reference anything outside their lexical scope.
const {deserialize, serialize} = require('cardigan');
const add = serialize((a, b) => a + b);
const subtract = serialize((a, b) => a - b);
const add2And3 = deserialize(add)(2, 3); // 5
const subtract3And2 = deserialize(subtract)(3, 2); // 1
function (a) { ... }
async function (a) { ... }
a => { ... }
async a => { ... }
(a, b) => { ... }
async (a, b) => { ... }
FAQs
node.js function serialization
We found that cardigan 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.

Product
Socket’s PHP and Composer support is now in Beta for all customers, with PHP reachability analysis generally available.

Product
Socket is bringing experimental protection to Firefox, scanning 97,000+ extensions in Mozilla's official directory for malware and risky updates.

Research
/Security News
Three compromised Rust crates pulled in a malicious dependency that downloaded and executed cross-platform malware during Cargo builds.