@newspapper/core
    Preparing search index...

    Function saveFeedItemToLibrary

    • Save an item to the library as an article: guid = its URL, the same key Search uses, so the item then lists as saved. Idempotent: saving again returns the existing article unchanged (edit its note with updateArticleNote). undefined if there is no such item.

      Parameters

      • db: Database
      • id: number
      • opts: { note?: string } = {}

      Returns Article | undefined