English
Appearance
Converts a File object to a Data URL string.
File
import { toDataURL } from 'rattail' await toDataURL(new File(['Hello, world!'], 'hello.txt', { type: 'text/plain' })) // return 'data:text/plain;base64,SGVsbG8sIHdvcmxkIQ=='
file
Promise<string>