fancyfs
v0.1.0
Published
fs functions wrapped with promises
Downloads
7
Maintainers
Readme
fancyfs ╰(✿˙ᗜ˙)੭━☆゚.*・。゚💾
fs functions with promises
readFile(path, encoding)
writeFile(path, data)
examples
import {readFile, writeFile} from "fancyfs"
// read/write text
const text = await readFile("LICENSE.md", "utf8")
await writeFile("LICENSE-copy.md", text)
// read/write json
const data = JSON.parse(await readFile("package.json"))
await writeFile("package-copy.json", JSON.stringify(data))