@mementoweb/client
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

memento-client

npm CircleCI Coveralls Codacy branch grade

Time Travel APIs NodeJS library with full support of the Memento protocol, originally adapted from memento-client.

Installation

$ npm install @mementoweb/client

# or using yarn:
$ yarn add @mementoweb/client

# or using pnpm:
$ pnpm add @mementoweb/client

Usage

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

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

License

ISC

/@mementoweb/client/

    Package Sidebar

    Install

    npm i @mementoweb/client

    Weekly Downloads

    2

    Version

    1.0.1

    License

    ISC

    Unpacked Size

    207 kB

    Total Files

    35

    Last publish

    Collaborators

    • pereslavtsev