{"name":"@quansync/fs","version":"0.1.1","author":{"name":"三咲智子 Kevin Deng","email":"sxzz@sxzz.moe"},"license":"MIT","_id":"@quansync/fs@0.1.1","maintainers":[{"name":"sxzz","email":"sxzz@sxzz.moe"}],"homepage":"https://github.com/quansync-dev/fs#readme","bugs":{"url":"https://github.com/quansync-dev/fs/issues"},"dist":{"shasum":"d0b7f225e4cbb7ef62a86cd53b3cc598a4b00877","tarball":"http://registry-npm.ywwl.com/@quansync/fs/download/@quansync/fs-0.1.1.tgz","fileCount":5,"integrity":"sha512-sx8J1O/+j2lqs8MvsEz6rs/6UAUpCb4fu7C6EqtMqzbS3CmqLkTDTOMK+DrWukvyUuHzl8DhMjfNJzQDTqfGJg==","signatures":[{"sig":"MEYCIQC/Z5pjCzKyvM47rMDApt5HlZmb+BQRJjXnqR60vA04BAIhAPz6KaD9ogGC0vZ2mrUh6dG/7/KZALT1WXY1a4AeaxH3","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8968,"size":2908,"noattachment":false,"key":"/@quansync/fs/-/@quansync/fs-0.1.1.tgz"},"main":"./dist/index.js","type":"module","_from":"file:quansync-fs-0.1.1.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20.18.0"},"exports":{".":"./dist/index.js","./package.json":"./package.json"},"funding":"https://github.com/sponsors/sxzz","scripts":{"dev":"tsdown --watch","lint":"eslint --cache .","test":"vitest","build":"tsdown","format":"prettier --cache --write .","release":"bumpp && pnpm publish","lint:fix":"pnpm run lint --fix","typecheck":"tsc --noEmit"},"_npmUser":{"name":"sxzz","email":"sxzz@sxzz.moe"},"prettier":"@sxzz/prettier-config","_resolved":"/private/var/folders/d9/9drlr87n4j904th57x6955l40000gn/T/c053d46fbfd412a062d99b872c68ef85/quansync-fs-0.1.1.tgz","_integrity":"sha512-sx8J1O/+j2lqs8MvsEz6rs/6UAUpCb4fu7C6EqtMqzbS3CmqLkTDTOMK+DrWukvyUuHzl8DhMjfNJzQDTqfGJg==","repository":{"url":"git+https://github.com/quansync-dev/fs.git","type":"git"},"_npmVersion":"11.1.0","description":"Filesystem utilities for Quansync","directories":{},"_nodeVersion":"22.14.0","dependencies":{"quansync":"^0.2.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.3","bumpp":"^10.0.3","eslint":"^9.21.0","tsdown":"^0.6.0","vitest":"^3.0.7","prettier":"^3.5.2","typescript":"^5.7.3","@types/node":"^22.13.5","oxc-transform":"^0.53.0","unplugin-quansync":"^0.3.3","@sxzz/eslint-config":"^5.1.1","@sxzz/prettier-config":"^2.2.0"},"_npmOperationalInternal":{"tmp":"tmp/fs_0.1.1_1740731491141_0.16534551191228952","host":"s3://npm-registry-packages-npm-production"},"readme":"# @quansync/fs\n\n[![npm version][npm-version-src]][npm-version-href]\n[![npm downloads][npm-downloads-src]][npm-downloads-href]\n[![Unit Test][unit-test-src]][unit-test-href]\n\nFilesystem utilities for [quansync](https://github.com/quansync-dev/quansync).\n\n## Install\n\n```bash\nnpm i @quansync/fs\n```\n\n## Usage\n\n```ts\nimport { readFile } from '@quansync/fs'\nimport { quansync } from 'quansync'\n\nconst resultAsync = await readFile('/path', 'utf8')\nconst resultSync = readFile.sync('/path', 'utf8')\n\nconst readFileTrimmed = quansync(function* (id: string) {\n  const text = yield* readFile(id, 'utf8').trim()\n  return text\n})\nconst readFileTrimmedSync = readFileTrimmed.sync\n```\n\n## Sponsors\n\n<p align=\"center\">\n  <a href=\"https://cdn.jsdelivr.net/gh/sxzz/sponsors/sponsors.svg\">\n    <img src='https://cdn.jsdelivr.net/gh/sxzz/sponsors/sponsors.svg'/>\n  </a>\n</p>\n\n## License\n\n[MIT](./LICENSE) License © 2025-PRESENT [Kevin Deng](https://github.com/sxzz)\n\n<!-- Badges -->\n\n[npm-version-src]: https://img.shields.io/npm/v/@quansync/fs.svg\n[npm-version-href]: https://npmjs.com/package/@quansync/fs\n[npm-downloads-src]: https://img.shields.io/npm/dm/@quansync/fs\n[npm-downloads-href]: https://www.npmcharts.com/compare/@quansync/fs?interval=30\n[unit-test-src]: https://github.com/quansync-dev/fs/actions/workflows/unit-test.yml/badge.svg\n[unit-test-href]: https://github.com/quansync-dev/fs/actions/workflows/unit-test.yml\n","publish_time":1740731491330,"_cnpm_publish_time":1740731491330,"dist-tags":{"latest":"1.1.0"}}