{"name":"@quansync/fs","version":"0.1.2","author":{"name":"三咲智子 Kevin Deng","email":"sxzz@sxzz.moe"},"license":"MIT","_id":"@quansync/fs@0.1.2","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":"90cb1a3a2d912a7acd678c02f1c4f8805f3af010","tarball":"http://registry-npm.ywwl.com/@quansync/fs/download/@quansync/fs-0.1.2.tgz","fileCount":5,"integrity":"sha512-ezIadUb1aFhwJLd++WVqVpi9rnlX8vnd4ju7saPhwLHJN1mJgOv0puePTGV+FbtSnWtwoHDT8lAm4kagDZmpCg==","signatures":[{"sig":"MEQCIDLQmWHoBtZHdso4vD6gINor7oS8vaNu2ebZquB9BABWAiBPUzavip0Wj8WuTIFa2+HHVLcmSf6q3p4wRDRYWc7Ifg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10864,"size":3174,"noattachment":false,"key":"/@quansync/fs/-/@quansync/fs-0.1.2.tgz"},"main":"./dist/index.js","type":"module","_from":"file:quansync-fs-0.1.2.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/d81f8606446a2252f0ed0dec5ca9e730/quansync-fs-0.1.2.tgz","_integrity":"sha512-ezIadUb1aFhwJLd++WVqVpi9rnlX8vnd4ju7saPhwLHJN1mJgOv0puePTGV+FbtSnWtwoHDT8lAm4kagDZmpCg==","repository":{"url":"git+https://github.com/quansync-dev/fs.git","type":"git"},"_npmVersion":"11.2.0","description":"Filesystem utilities for Quansync","directories":{},"_nodeVersion":"22.14.0","dependencies":{"quansync":"^0.2.10"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.3","bumpp":"^10.1.0","eslint":"^9.23.0","tsdown":"^0.6.10","vitest":"^3.0.9","prettier":"^3.5.3","typescript":"^5.8.2","@types/node":"^22.13.14","oxc-transform":"^0.61.2","@sxzz/eslint-config":"^6.1.0","@sxzz/prettier-config":"^2.2.1"},"_npmOperationalInternal":{"tmp":"tmp/fs_0.1.2_1743317028473_0.8902148504679579","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":1743317028687,"_cnpm_publish_time":1743317028687,"dist-tags":{"latest":"1.1.0"}}