Analysis tool for summarizing the structure, composition, and complexity of Scratch programs.
npm install scratch-analysis

bash
npm install scratch-analysis
``js
const analysis = require('scratch-analysis');
analysis(buffer, function (err, result) {
// handle any validation errors and ...
// do something interesting with the results!
});
`Analysis Modules
$3
The scratch-analysis module will return an object containing high-level summary information about the project:| Key | Attributes |
| ----------------- | -------------------------------------------------------- |
|
scripts | count |
| blocks | count, unique, list, frequency |
| sprites | count |
| variables | count, id |
| cloud | count, id |
| lists | count |
| costumes | count, list, hash |
| sounds | count, list, hash |
| extensions | count, list |
| comments | count` |