0.1.0 • Published 5 years ago

fancyfs v0.1.0

Weekly downloads
1
License
ISC
Repository
github
Last release
5 years ago

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))