Firestore Timestamp Formatter (v1.0.4) converts Firestore Timestamp objects to JavaScript Date objects automatically using Firestore's withConverter method. It eliminates the need for manual toDate() calls on each document field. The package is simple, focusing solely on timestamp conversion, and is compatible with any Firestore client library. It operates exclusively in the browser or Node.js environments that support Firestore.
npm install firestore-timestamp-formatterNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Fetch a Firestore document with automatic timestamp-to-Date conversion using withConverter.
Manually convert nested Timestamps using toDate() or apply the converter recursively.
Use a more comprehensive converter if you need to convert other types.
Consider using built-in Firestore conversion mechanisms or a community-maintained alternative.
Ensure all timestamp fields exist in the document or add a null check before using the converter.
Use default import: import TimestampConverter from 'firestore-timestamp-formatter';
No dependency data recorded yet.