mirror of
https://github.com/scratchfoundation/scratch-analysis.git
synced 2025-08-28 22:09:00 -04:00
Analysis tool for summarizing the structure, composition, and complexity of Scratch programs.
## [2.4.1](https://github.com/scratchfoundation/scratch-analysis/compare/v2.4.0...v2.4.1) (2025-03-18) ### Bug Fixes * extraction of extensions ([ |
||
|---|---|---|
| .github | ||
| .husky | ||
| lib | ||
| test | ||
| .eslintignore | ||
| .eslintrc | ||
| .gitignore | ||
| .nvmrc | ||
| CHANGELOG.md | ||
| commitlint.config.js | ||
| docker-compose.yml | ||
| Dockerfile | ||
| LICENSE | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| release.config.js | ||
| TRADEMARK | ||
scratch-analysis
Analysis tool for summarizing the structure, composition, and complexity of Scratch programs.
Getting Started
npm install scratch-analysis
const analysis = require('scratch-analysis');
analysis(buffer, function (err, result) {
// handle any validation errors and ...
// do something interesting with the results!
});
Analysis Modules
General
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 |
Concepts
Coming Soon
Complexity
Coming Soon
Classification
Coming Soon
References
New Frameworks for Studying and Assessing the Development of Computational Thinking
Author(s): Karen Brennan, Mitchel Resnick PDF: Download