@robotical/martyblocks 1.4.44 → 1.4.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,15 @@
1
+ const fs = require('fs');
2
+ const path = require('path');
3
+
4
+ const filename = process.argv[2];
5
+
6
+ if (!filename) {
7
+ console.error('Usage: node count-non-ascii.js <filename>');
8
+ process.exit(1);
9
+ }
10
+
11
+ const fileContent = fs.readFileSync(path.resolve(filename), 'utf-8');
12
+ const nonAsciiChars = [...fileContent].filter(char => char.charCodeAt(0) > 127);
13
+ const nonAsciiCount = nonAsciiChars.length;
14
+
15
+ console.log(`The file "${filename}" contains ${nonAsciiCount} non-ASCII characters.`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robotical/martyblocks",
3
- "version": "1.4.44",
3
+ "version": "1.4.45",
4
4
  "description": "MartyBlocks based on Scratch for Marty the Robot by Robotical",
5
5
  "main": "README.md",
6
6
  "scripts": {