This repository has been archived on 2026-10-23. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Bitua-3D-Explorer/find_led.js
T

24 lines
658 B
JavaScript

const fs = require('fs');
function findBarra(filePath) {
const buffer = fs.readFileSync(filePath);
const content = buffer.toString('utf8');
// Find all occurrences of names starting with "Bar" or "led"
const regex = /"name"\s*:\s*"([^"]*bar[^"]*)"/gi;
let match;
const results = new Set();
while ((match = regex.exec(content)) !== null) {
results.add(match[1]);
}
const regex2 = /"name"\s*:\s*"([^"]*led[^"]*)"/gi;
while ((match = regex2.exec(content)) !== null) {
results.add(match[1]);
}
console.log('Found names:', Array.from(results));
}
findBarra('Cabinet v2.5 con eje.glb');