Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 807 Bytes

README.md

File metadata and controls

34 lines (22 loc) · 807 Bytes

fsxx

NPM version

File system in zx style.

import { cd, io, read } from 'fsxx'

console.log(await read`README.md`)

const { name } = await read.json`package.json`

cd('packages')
const { data, save } = await io.json`./core/package.json`
data.version = '0.1.1'
await save()

const isMIT = read.sync`LICENSE`.includes('MIT')

EXPERIMENTAL: APIs are very likely to be overhauled in the future.

Sponsors

License

MIT License © 2021 Anthony Fu