* Generate stable file prefix (6 chars) for node ID namespacing
(filePath: string)
| 287 | * Generate stable file prefix (6 chars) for node ID namespacing |
| 288 | */ |
| 289 | getFilePrefix(filePath: string): string { |
| 290 | return crypto.createHash('md5').update(filePath).digest('hex').substring(0, 6); |
| 291 | } |
| 292 | |
| 293 | /** |
| 294 | * Hash content (raw) |