{"id":13630553,"url":"https://github.com/bartveneman/css-analyzer-diff","last_synced_at":"2025-10-15T17:23:29.610Z","repository":{"id":32782771,"uuid":"142064151","full_name":"bartveneman/css-analyzer-diff","owner":"bartveneman","description":"Calculate the difference between two sets of CSS stats","archived":false,"fork":false,"pushed_at":"2023-01-03T15:16:02.000Z","size":814,"stargazers_count":13,"open_issues_count":10,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-14T13:49:30.431Z","etag":null,"topics":["analyzer","css","css-analyzer-diff","cssstats","diff","parker","projectwallace","stats","stylestats","wallace"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bartveneman.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-07-23T20:11:15.000Z","updated_at":"2022-03-05T18:36:41.000Z","dependencies_parsed_at":"2023-01-14T22:13:06.907Z","dependency_job_id":null,"html_url":"https://github.com/bartveneman/css-analyzer-diff","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/bartveneman/css-analyzer-diff","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bartveneman%2Fcss-analyzer-diff","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bartveneman%2Fcss-analyzer-diff/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bartveneman%2Fcss-analyzer-diff/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bartveneman%2Fcss-analyzer-diff/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bartveneman","download_url":"https://codeload.github.com/bartveneman/css-analyzer-diff/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bartveneman%2Fcss-analyzer-diff/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264505231,"owners_count":23618906,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["analyzer","css","css-analyzer-diff","cssstats","diff","parker","projectwallace","stats","stylestats","wallace"],"created_at":"2024-08-01T22:01:46.907Z","updated_at":"2025-10-15T17:23:24.578Z","avatar_url":"https://github.com/bartveneman.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# css-analyzer-diff\n\n[![NPM Version](https://img.shields.io/npm/v/css-analyzer-diff.svg)](https://www.npmjs.com/package/css-analyzer-diff)\n[![Build Status](https://travis-ci.org/bartveneman/css-analyzer-diff.svg?branch=master)](https://travis-ci.org/bartveneman/css-analyzer-diff)\n[![Known Vulnerabilities](https://snyk.io/test/github/bartveneman/css-analyzer-diff/badge.svg)](https://snyk.io/test/github/bartveneman/css-analyzer-diff)\n![Dependencies Status](https://img.shields.io/david/bartveneman/css-analyzer-diff.svg)\n![Dependencies Status](https://img.shields.io/david/dev/bartveneman/css-analyzer-diff.svg)\n[![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo)\n[![Project: Wallace](https://img.shields.io/badge/Project-Wallace-29c87d.svg)](https://www.projectwallace.com/oss)\n\nCalculate the difference between two sets of [CSS stats](https://github.com/projectwallace/css-analyzer).\n\n## Usage\n\n```js\nconst differ = require(\"css-analyzer-diff\");\nconst analyzeCss = require(\"@projectwallace/css-analyzer\");\n\nconst [firstStats, secondStats] = await Promise.all([\n  analyzeCss(\".cat { color: brown; }\"),\n  analyzeCss(\".cat { color: red; }\")\n]);\nconst changes = differ(firstStats, secondStats);\n\n//=\u003e Returns an object with all changes\n// {\n//   'values.colors.unique': [\n//     {\n//       value: 'brown',\n//       removed: true,\n//       added: false,\n//       changed: true\n//     },\n//     {\n//       value: 'red',\n//       removed: false,\n//       added: true,\n//       changed: true\n//     }\n//  ],\n//\n//  ... many more ...\n//\n// }\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbartveneman%2Fcss-analyzer-diff","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbartveneman%2Fcss-analyzer-diff","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbartveneman%2Fcss-analyzer-diff/lists"}