Skip to content

Instantly share code, notes, and snippets.

View zFernand0's full-sized avatar
๐Ÿ˜‹
Keep Moving Forward!

Fernando Rijo Cedeno zFernand0

๐Ÿ˜‹
Keep Moving Forward!
View GitHub Profile
@zFernand0
zFernand0 / shrinkwrap-compare.js
Created January 31, 2022 15:03
Comparing packages in multiple SW files based on integrity and other items
const ci = require("./cli-installed-next.json");
const gh = require("./cli-github-next.json");
const cv = require("./cli-verdaccio-next.json");
const filterPkgs = (obj, str) => {
const ret = [];
for (const pkg of Object.keys(obj.packages)) {
if (pkg === "" || pkg.startsWith("__tests__")) continue;
if (pkg === "node_modules/@zowe/cli") continue;
if (obj.packages[pkg].dev) continue;