@rent-scraper/utils
v1.0.32
Published
Utility functions for rent-scraper
Readme
@rent-scraper/utils
Internal package. Shared utilities and config file management used across all @rent-scraper/* packages.
Config (config.ts)
Handles reading and writing the YAML config files (config.zillow.yaml, config.redfin.yaml).
readConfigFile(source)— parse the config file for a sourcewriteConfigFile(source, config)— write config back to diskgetValueFromConfigFile(source, key)— read a single config keyupdateConfigFile(source, payload)— merge and save partial updatesgetConfigFilePath(source)— resolve the config file path (workspace root in dev, pointer file in prod)checkForConfigFile(source)— return whether the config file existscheckBrowserServer()— pinglocalhost:8082and return whether the browser server is runningcheckRequiredConfigValues(source, config)— return a list of missing required fields
Utilities (index.ts)
General-purpose helpers used across the monorepo: array comparison, error parsing, YAML read/write, path resolution, and random value selection.
