This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// get a list of articles based on search endpoint | |
import { gql, GraphQLClient } from 'npm:graphql-request' | |
import sanitizeHtml from 'npm:sanitize-html' | |
import epub, { Chapter } from 'npm:epub-gen-memory' | |
const OMNIVORE_API_KEY = '' | |
const OMNIVORE_ENDPOINT = 'https://api-prod.omnivore.app/api/graphql' | |
const graphQLClient = new GraphQLClient(OMNIVORE_ENDPOINT, { | |
headers: { |