Add documentation
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# @welshman/feeds [](https://npmjs.com/package/@welshman/feeds)
|
||||
# @welshman/feeds [](https://npmjs.com/package/@welshman/feeds)
|
||||
|
||||
A custom feed compiler and loader for nostr. Read the spec on [wikifreedia](https://wikifreedia.xyz/cip-01/97c70a44366a6535c1).
|
||||
|
||||
@@ -18,7 +18,7 @@ const feed = intersectionFeed(
|
||||
scopeFeed("global"),
|
||||
)
|
||||
|
||||
// Create a controller
|
||||
// Create a controller, providing required context via FeedOptions
|
||||
const controller = new FeedController({
|
||||
feed,
|
||||
request,
|
||||
@@ -30,5 +30,5 @@ const controller = new FeedController({
|
||||
})
|
||||
|
||||
// Load notes using the feed
|
||||
controller.load(10)
|
||||
const events = await controller.load(10)
|
||||
```
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"entryPoints": ["src/index.ts"]
|
||||
}
|
||||
Reference in New Issue
Block a user