Module

JS.FileIO

Package
purescript-js-fileio
Repository
newlandsvalley/purescript-js-fileio

#Filespec Source

type Filespec = { contents :: String, name :: String }

the result of a file load

#loadTextFile Source

loadTextFile :: String -> Aff Filespec

load a text file from a DOM element with the supplied id

#loadBinaryFileAsText Source

loadBinaryFileAsText :: String -> Aff Filespec

load a binary file from a DOM element with the supplied id and tunnel it as a binary string

#saveTextFile Source

saveTextFile :: Filespec -> Effect Unit

save a text file

Modules
JS.FileIO