Skip to content

Conversation

sekedus
Copy link

@sekedus sekedus commented Aug 9, 2025

Issue: #7

Description of changes:

  • Add oldestArchive option to isArchived method
  • Update README.md with detailed usage and API docs

The isArchived method now accepts an options object, allowing users to request the oldest available archive with the oldestArchive flag.

README.md and wayback.test.js have been updated to reflect this new functionality.


Example:

import { Wayback } from './src/wayback.js';

const wayback = new Wayback({
    connectionTimeoutMs: 300000  // 5 minutes in milliseconds
});
const result = await wayback.isArchived('http://microsoft.com', { oldestArchive: true });
console.log(result);

Changed the default oldest archive timestamp from January 1, 1970 to March 1, 1995 at 19:02:27 UTC to reflect the earliest available Wayback Machine snapshot.

Source: https://www.chrisrcook.com/2024/10/25/the-oldest-pages-in-the-wayback-machine/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant