https://github.com/pereslavtsev/memento-client
Time Travel APIs NodeJS library with full support of the Memento protocol.
https://github.com/pereslavtsev/memento-client
memento timetravel wayback webarchive
Last synced: 3 months ago
JSON representation
Time Travel APIs NodeJS library with full support of the Memento protocol.
- Host: GitHub
- URL: https://github.com/pereslavtsev/memento-client
- Owner: pereslavtsev
- License: other
- Created: 2021-10-29T10:12:20.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-11-09T10:00:03.000Z (over 3 years ago)
- Last Synced: 2025-02-20T23:33:17.045Z (4 months ago)
- Topics: memento, timetravel, wayback, webarchive
- Language: TypeScript
- Homepage: https://timetravel.mementoweb.org/guide/api/
- Size: 294 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# memento-client



[Time Travel APIs](http://timetravel.mementoweb.org/guide/api/) NodeJS library with full support of the Memento protocol, originally adapted from [memento-client](https://github.com/jarofghosts/memento-client).
## Installation
```bash
$ npm install @mementoweb/client# or using yarn:
$ yarn add @mementoweb/client# or using pnpm:
$ pnpm add @mementoweb/client
```## Usage
```typescript
import MementoClient from '@mementoweb/client'const client = new MementoClient('https://timetravel.mementoweb.org');
const { mementos: { closest } } = await client.uri('http://cnn.com').mementos('2013');
console.log(closest);
```## Test
```bash
# unit tests
$ pnpm run test# e2e tests
$ pnpm run test:e2e# test coverage
$ pnpm run test:cov
```## License
ISC