fetch-base64
JSON →A Node.js package (v2.1.2, last updated 2019) for fetching local or remote files and returning them as base64-encoded strings with optional MIME type prefixes. Useful for inlining assets like images or fonts into HTML/CSS. Provides three functions: `local`, `remote`, and `auto` for path detection. No dependencies, simple API, but no longer actively maintained. Alternative to data URIs with manual encoding.
Resources
packagefetch-base64 ↗