philippta / flyscrape

Flyscrape is a command-line web scraping tool designed for those without advanced programming skills.
https://flyscrape.com
Mozilla Public License 2.0
1.02k stars 29 forks source link

Built-in readFile function #10

Closed philippta closed 9 months ago

philippta commented 10 months ago

A new readFile function should be added to the built-in functions under the flyscrape package.

Use-cases:

API definiton:

function readFile(name: string): string

Proposed example:

import { readFile } from "flyscrape";

export const config = {
  proxies: readFile("proxylist.txt").split("\n"),
};