UNPKG

supercookie

Version:

A tool for managing and creating the most versatile cookies ever seen without all the fuss.

10 lines 359 B
import { exec } from 'node:child_process'; import * as fs from 'fs'; const prev = exec("npm list supercookie").stdout.on('data', (data) => { const v = data.match(/supercookie@\d.*/); if (v) { console.log('Previous version:', v[0]); fs.writeFileSync('./prev.tmp', v[0].split('@')[1][0]); } }); //# sourceMappingURL=preinstall.js.map