@nostr-fetch/adapter-nostr-tools-v2
TypeScript icon, indicating that this package has built-in type declarations

0.17.0 • Public • Published

@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 version nostr-tools version
* 2.1.0

Readme

Keywords

none

Package Sidebar

Install

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

Weekly Downloads

3

Version

0.17.0

License

MIT

Unpacked Size

117 kB

Total Files

14

Last publish

Collaborators

  • jiftechnify