@quansync/fs
Filesystem utilities for Quansync
Last updated a year ago by sxzz .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @quansync/fs 
SYNC missed versions from official npm registry.

@quansync/fs npm

Unit Test

Filesystem utilities for quansync.

Install

npm i @quansync/fs

Usage

import { readFile } from '@quansync/fs'
import { quansync } from 'quansync'

const resultAsync = await readFile('/path', 'utf8')
const resultSync = readFile.sync('/path', 'utf8')

const readFileTrimmed = quansync(function* (id: string) {
  const text = yield* readFile(id, 'utf8').trim()
  return text
})
const readFileTrimmedSync = readFileTrimmed.sync

Sponsors

License

MIT License © 2025 三咲智子 Kevin Deng

Current Tags

  • 0.1.3                                ...           latest (a year ago)

4 Versions

  • 0.1.3                                ...           a year ago
  • 0.1.2                                ...           a year ago
  • 0.1.1                                ...           a year ago
  • 0.1.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 1
Dependencies (1)
Dev Dependencies (10)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |