-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbrowser.js
More file actions
94 lines (83 loc) · 2.24 KB
/
browser.js
File metadata and controls
94 lines (83 loc) · 2.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
// Browser-friendly entry point for Fixts.
// Exposes only pure functions that do not rely on Node.js modules.
export { formatDate, extractAndFormat, generateNewName } from './src/core/formatter.js';
export {
parseTimestamp,
parseTimestampFromFilename,
parseTimestampFromName,
getDetectionInfo
} from './src/utils/timestampParser.js';
export {
getBestTimestamp,
formatTimestamp,
timestampToDate
} from './src/utils/heuristicDetector.js';
export {
createDate,
parseDateString,
parseEXIFDateTime
} from './src/utils/dateUtils.js';
// File metadata extraction (browser-safe - uses File API only, no Node.js deps)
export {
parseTimestampFromEXIF,
parseTimestampFromAudio
} from './src/utils/fileMetadataParser-browser.js';
export { applyCleaningPatterns } from './src/config/cleaningPatterns.js';
export {
parseTimeShift,
applyTimeShift,
formatTimeShift,
validateShiftedDate
} from './src/utils/timeShift.js';
export {
getBasename,
getDirname,
getExtension,
getNameWithoutExt,
joinPaths,
normalizePath,
isAbsolute,
getRelativePath,
splitPath,
splitBasename
} from './src/utils/path-utils.js';
// Ambiguity detection (browser-safe, no Node.js dependencies)
export { detectAmbiguity } from './src/utils/ambiguityDetector-browser.js';
// Batch processing API (browser-safe, high-performance)
export {
parseTimestampBatch,
parseAndGroupByConfidence,
getBatchStats,
filterByTimestamp
} from './src/utils/batchProcessor.js';
// Context-aware ambiguity resolution (browser-safe)
export {
analyzeContextualFormat,
resolveAmbiguitiesByContext,
getContextualParsingOptions,
hasAmbiguousDates,
getFormatSummary
} from './src/utils/contextualResolver.js';
// Custom pattern support (browser-safe, extensible API)
export {
registerPattern,
unregisterPattern,
getRegisteredPatterns,
clearPatterns,
hasPattern,
getPattern,
applyCustomPatterns,
exportPatterns,
importPatterns,
PatternValidationError
} from './src/utils/customPatternManager.js';
// Unified metadata extraction (browser-safe subset)
export {
extractTimestamp,
extractTimestampBatch,
compareTimestampSources,
getSourceStatistics,
suggestBestSource,
SOURCE_TYPE,
DEFAULT_PRIORITY
} from './src/utils/unifiedMetadataExtractor-browser.js';