{"name":"@quansync/fs","version":"0.1.3","author":{"name":"三咲智子 Kevin Deng","email":"sxzz@sxzz.moe"},"license":"MIT","_id":"@quansync/fs@0.1.3","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":"2328aec83fef343b72c73ca77ca08e1e12bcf9d9","tarball":"http://registry-npm.ywwl.com/@quansync/fs/download/@quansync/fs-0.1.3.tgz","fileCount":5,"integrity":"sha512-G0OnZbMWEs5LhDyqy2UL17vGhSVHkQIfVojMtEWVenvj0V5S84VBgy86kJIuNsGDp2p7sTKlpSIpBUWdC35OKg==","signatures":[{"sig":"MEQCIGDcgCkL8KBnTMkggsIlmVeNf5EM7SHT1Ih2Lr8mriDvAiBG3syKZFQILSzBOfZuB8oV0c65gNMjkmMmWgr9Mrf0TQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":12560,"size":3271,"noattachment":false,"key":"/@quansync/fs/-/@quansync/fs-0.1.3.tgz"},"main":"./dist/index.js","type":"module","_from":"file:quansync-fs-0.1.3.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20.0.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/9e76fb5baea75393023f437e95752fda/quansync-fs-0.1.3.tgz","_integrity":"sha512-G0OnZbMWEs5LhDyqy2UL17vGhSVHkQIfVojMtEWVenvj0V5S84VBgy86kJIuNsGDp2p7sTKlpSIpBUWdC35OKg==","repository":{"url":"git+https://github.com/quansync-dev/fs.git","type":"git"},"_npmVersion":"10.9.2","description":"Filesystem utilities for Quansync","directories":{},"_nodeVersion":"22.15.0","dependencies":{"quansync":"^0.2.10"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.4","bumpp":"^10.1.0","eslint":"^9.26.0","tsdown":"^0.11.1","vitest":"^3.1.3","prettier":"^3.5.3","typescript":"^5.8.3","@types/node":"^22.15.17","@sxzz/eslint-config":"^7.0.0","@sxzz/prettier-config":"^2.2.1"},"_npmOperationalInternal":{"tmp":"tmp/fs_0.1.3_1746751236479_0.5932853823151638","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":1746751236698,"_cnpm_publish_time":1746751236698,"dist-tags":{"latest":"1.1.0"}}