0.17.0 • Published 9 months ago

@nostr-fetch/adapter-nostr-tools-v2 v0.17.0

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

@nostr-fetch/adapter-nostr-tools-v2

This package includes the adapter for SimplePool of nostr-tools v2 (>= 2.1.0) which allows it to work with nostr-fetch, a utility library for fetching past events from Nostr relays.

If you want to use nostr-fetch, here is a good start point!

Example

import { SimplePool } from 'nostr-tools';
import { NostrFetcher } from 'nostr-fetch';
import { simplePoolAdapter } from '@nostr-fetch/adapter-nostr-tools'

const pool = new SimplePool();
const fetcher = NostrFetcher.withCustomPool(simplePoolAdapter(pool));

Minimum Supported Version of nostr-tools

adapter versionnostr-tools version
*2.1.0
0.16.0

9 months ago

0.17.0

9 months ago

0.15.1

1 year ago

0.15.0

2 years ago