INNER CODE UNIT · JavaScript

hit

pegaltier/awesome-utils-dev · node_scripts/wip-dedupe.js:91

    const hit = textIndex.find((f) => f.content.includes(needle));
    return hit ? hit.file : null;
}

// --- process WIP.md ---------------------------------------------------------

const wipLines = fs.readFileSync(WIP, 'utf8').split('\n');
const kept = [];
const moved = []; // { line, file }

for (const line of wipLines) {
    if (!line.trim()) {
        kept.push(line);
        continue;
    }
    const found = findExisting(line);
    if (found) moved.push({ line, file: found });
    else kept.push(line);

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…