
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
@cuser/reader
Advanced tools
+ new CuserReader(core: CuserCore, peerId: string | Promise<string>, opts?: CuserReaderOptions): CuserReader
Defined in reader/reader.js:32
| Name | Type | Default value |
|---|---|---|
core | CuserCore | - |
peerId | string | Promise<string> | - |
opts | CuserReaderOptions | {} |
Returns: CuserReader
▸ Private_resolveRootMessage(topicId: string): Promise<string>
Defined in reader/reader.js:118
Get the root message for a certain topicId
| Name | Type |
|---|---|
topicId | string |
Returns: Promise<string>
▸ getMessage(cid: string): Promise<GraphMessage>
Defined in reader/reader.js:108
Gets the message from ipfs using the CID given by parameter
| Name | Type |
|---|---|
cid | string |
Returns: Promise<GraphMessage>
▸ getMessages(topicId: string, opts: CuserReaderMessagesIteratorOptions): Promise<CuserReaderMessageIteratorResult[]> | AsyncIterable<CuserReaderMessageIteratorResult>
Defined in reader/reader.js:76
Gets messages from ipfs layer
example
const messages = reader.getMessages('custom_topic_id');
console.log(messages);
const messages = reader.getMessages('custom_topic_id', {
iterator: true,
});
for await (let value of messages) {
console.log(value);
}
| Name | Type |
|---|---|
topicId | string |
opts | CuserReaderMessagesIteratorOptions |
Returns: Promise<CuserReaderMessageIteratorResult[]> | AsyncIterable<CuserReaderMessageIteratorResult>
FAQs
messages reader from the ipfs transport layer
The npm package @cuser/reader receives a total of 22 weekly downloads. As such, @cuser/reader popularity was classified as not popular.
We found that @cuser/reader demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.