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 sqlite, { Statement } from 'sqlite3' | |
import { Readable, ReadableOptions } from 'stream' | |
interface Props extends ReadableOptions { | |
dbPath: string | |
query: string | |
} | |
export class SqliteReadable extends Readable { | |
private stmt: Statement |
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
/* | |
* This script shows COVID-19 numbers using sledilnik.org API. | |
* No guarantee on correctness and completeness of the information provided. | |
*/ | |
const BASE_API_URL = "https://api.sledilnik.org/api"; | |
// URL to open when pressing on the widget. | |
const WIDGET_PRESS_URL = "https://covid-19.sledilnik.org"; |