This file contains hidden or 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
| import yamlhead from "yamlhead"; | |
| import marked from "marked"; | |
| const path = require("path"); | |
| const fs = require("fs"); | |
| const directoryPath = path.join(__dirname, "../data"); | |
| async function readDir() { | |
| try { |
This file contains hidden or 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
| // Usage: node index.mjs YOUR_API_KEY | |
| import fetch from "node-fetch"; | |
| import fs from "fs"; | |
| async function fetchRevueData(key) { | |
| const response = await fetch("https://www.getrevue.co/api/v2/issues", { | |
| headers: { | |
| Authorization: `Token ${key}`, | |
| }, |
OlderNewer