{"_id":"@quansync/fs","_rev":"3781938","name":"@quansync/fs","description":"Filesystem utilities for Quansync","dist-tags":{"latest":"0.1.3"},"maintainers":[{"name":"sxzz","email":"sxzz@sxzz.moe"}],"time":{"modified":"2025-05-16T07:36:30.000Z","created":"2025-02-28T04:29:27.173Z","0.1.3":"2025-05-09T00:40:36.698Z","0.1.2":"2025-03-30T06:43:48.687Z","0.1.1":"2025-02-28T08:31:31.330Z","0.1.0":"2025-02-28T04:29:27.173Z"},"users":{},"author":{"name":"三咲智子 Kevin Deng","email":"sxzz@sxzz.moe"},"repository":{"type":"git","url":"git+https://github.com/quansync-dev/fs.git"},"versions":{"0.1.3":{"name":"@quansync/fs","version":"0.1.3","description":"Filesystem utilities for Quansync","type":"module","license":"MIT","homepage":"https://github.com/quansync-dev/fs#readme","bugs":{"url":"https://github.com/quansync-dev/fs/issues"},"repository":{"type":"git","url":"git+https://github.com/quansync-dev/fs.git"},"author":{"name":"三咲智子 Kevin Deng","email":"sxzz@sxzz.moe"},"funding":"https://github.com/sponsors/sxzz","main":"./dist/index.js","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":"./dist/index.js","./package.json":"./package.json"},"publishConfig":{"access":"public"},"dependencies":{"quansync":"^0.2.10"},"devDependencies":{"@sxzz/eslint-config":"^7.0.0","@sxzz/prettier-config":"^2.2.1","@types/node":"^22.15.17","bumpp":"^10.1.0","eslint":"^9.26.0","prettier":"^3.5.3","tsdown":"^0.11.1","tsx":"^4.19.4","typescript":"^5.8.3","vitest":"^3.1.3"},"engines":{"node":">=20.0.0"},"prettier":"@sxzz/prettier-config","scripts":{"lint":"eslint --cache .","lint:fix":"pnpm run lint --fix","build":"tsdown","dev":"tsdown --watch","test":"vitest","typecheck":"tsc --noEmit","format":"prettier --cache --write .","release":"bumpp && pnpm publish"},"_id":"@quansync/fs@0.1.3","_integrity":"sha512-G0OnZbMWEs5LhDyqy2UL17vGhSVHkQIfVojMtEWVenvj0V5S84VBgy86kJIuNsGDp2p7sTKlpSIpBUWdC35OKg==","_resolved":"/private/var/folders/d9/9drlr87n4j904th57x6955l40000gn/T/9e76fb5baea75393023f437e95752fda/quansync-fs-0.1.3.tgz","_from":"file:quansync-fs-0.1.3.tgz","_nodeVersion":"22.15.0","_npmVersion":"10.9.2","dist":{"shasum":"2328aec83fef343b72c73ca77ca08e1e12bcf9d9","size":3271,"noattachment":false,"key":"/@quansync/fs/-/@quansync/fs-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/@quansync/fs/download/@quansync/fs-0.1.3.tgz"},"_npmUser":{"name":"sxzz","email":"sxzz@sxzz.moe"},"directories":{},"maintainers":[{"name":"sxzz","email":"sxzz@sxzz.moe"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/fs_0.1.3_1746751236479_0.5932853823151638"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-05-09T00:40:36.698Z","publish_time":1746751236698,"_source_registry_name":"default","_cnpm_publish_time":1746751236698},"0.1.2":{"name":"@quansync/fs","version":"0.1.2","description":"Filesystem utilities for Quansync","type":"module","license":"MIT","homepage":"https://github.com/quansync-dev/fs#readme","bugs":{"url":"https://github.com/quansync-dev/fs/issues"},"repository":{"type":"git","url":"git+https://github.com/quansync-dev/fs.git"},"author":{"name":"三咲智子 Kevin Deng","email":"sxzz@sxzz.moe"},"funding":"https://github.com/sponsors/sxzz","main":"./dist/index.js","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":"./dist/index.js","./package.json":"./package.json"},"publishConfig":{"access":"public"},"dependencies":{"quansync":"^0.2.10"},"devDependencies":{"@sxzz/eslint-config":"^6.1.0","@sxzz/prettier-config":"^2.2.1","@types/node":"^22.13.14","bumpp":"^10.1.0","eslint":"^9.23.0","oxc-transform":"^0.61.2","prettier":"^3.5.3","tsdown":"^0.6.10","tsx":"^4.19.3","typescript":"^5.8.2","vitest":"^3.0.9"},"engines":{"node":">=20.0.0"},"prettier":"@sxzz/prettier-config","scripts":{"lint":"eslint --cache .","lint:fix":"pnpm run lint --fix","build":"tsdown","dev":"tsdown --watch","test":"vitest","typecheck":"tsc --noEmit","format":"prettier --cache --write .","release":"bumpp && pnpm publish"},"_id":"@quansync/fs@0.1.2","_integrity":"sha512-ezIadUb1aFhwJLd++WVqVpi9rnlX8vnd4ju7saPhwLHJN1mJgOv0puePTGV+FbtSnWtwoHDT8lAm4kagDZmpCg==","_resolved":"/private/var/folders/d9/9drlr87n4j904th57x6955l40000gn/T/d81f8606446a2252f0ed0dec5ca9e730/quansync-fs-0.1.2.tgz","_from":"file:quansync-fs-0.1.2.tgz","_nodeVersion":"22.14.0","_npmVersion":"11.2.0","dist":{"shasum":"90cb1a3a2d912a7acd678c02f1c4f8805f3af010","size":3174,"noattachment":false,"key":"/@quansync/fs/-/@quansync/fs-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@quansync/fs/download/@quansync/fs-0.1.2.tgz"},"_npmUser":{"name":"sxzz","email":"sxzz@sxzz.moe"},"directories":{},"maintainers":[{"name":"sxzz","email":"sxzz@sxzz.moe"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/fs_0.1.2_1743317028473_0.8902148504679579"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-03-30T06:43:48.687Z","publish_time":1743317028687,"_source_registry_name":"default","_cnpm_publish_time":1743317028687},"0.1.1":{"name":"@quansync/fs","version":"0.1.1","description":"Filesystem utilities for Quansync","type":"module","license":"MIT","homepage":"https://github.com/quansync-dev/fs#readme","bugs":{"url":"https://github.com/quansync-dev/fs/issues"},"repository":{"type":"git","url":"git+https://github.com/quansync-dev/fs.git"},"author":{"name":"三咲智子 Kevin Deng","email":"sxzz@sxzz.moe"},"funding":"https://github.com/sponsors/sxzz","main":"./dist/index.js","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":"./dist/index.js","./package.json":"./package.json"},"publishConfig":{"access":"public"},"dependencies":{"quansync":"^0.2.4"},"devDependencies":{"@sxzz/eslint-config":"^5.1.1","@sxzz/prettier-config":"^2.2.0","@types/node":"^22.13.5","bumpp":"^10.0.3","eslint":"^9.21.0","oxc-transform":"^0.53.0","prettier":"^3.5.2","tsdown":"^0.6.0","tsx":"^4.19.3","typescript":"^5.7.3","unplugin-quansync":"^0.3.3","vitest":"^3.0.7"},"engines":{"node":">=20.18.0"},"prettier":"@sxzz/prettier-config","scripts":{"lint":"eslint --cache .","lint:fix":"pnpm run lint --fix","build":"tsdown","dev":"tsdown --watch","test":"vitest","typecheck":"tsc --noEmit","format":"prettier --cache --write .","release":"bumpp && pnpm publish"},"_id":"@quansync/fs@0.1.1","_integrity":"sha512-sx8J1O/+j2lqs8MvsEz6rs/6UAUpCb4fu7C6EqtMqzbS3CmqLkTDTOMK+DrWukvyUuHzl8DhMjfNJzQDTqfGJg==","_resolved":"/private/var/folders/d9/9drlr87n4j904th57x6955l40000gn/T/c053d46fbfd412a062d99b872c68ef85/quansync-fs-0.1.1.tgz","_from":"file:quansync-fs-0.1.1.tgz","_nodeVersion":"22.14.0","_npmVersion":"11.1.0","dist":{"shasum":"d0b7f225e4cbb7ef62a86cd53b3cc598a4b00877","size":2908,"noattachment":false,"key":"/@quansync/fs/-/@quansync/fs-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@quansync/fs/download/@quansync/fs-0.1.1.tgz"},"_npmUser":{"name":"sxzz","email":"sxzz@sxzz.moe"},"directories":{},"maintainers":[{"name":"sxzz","email":"sxzz@sxzz.moe"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/fs_0.1.1_1740731491141_0.16534551191228952"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-02-28T08:31:31.330Z","publish_time":1740731491330,"_source_registry_name":"default","_cnpm_publish_time":1740731491330},"0.1.0":{"name":"@quansync/fs","version":"0.1.0","description":"Filesystem utilities for Quansync","type":"module","license":"MIT","homepage":"https://github.com/quansync-dev/fs#readme","bugs":{"url":"https://github.com/quansync-dev/fs/issues"},"repository":{"type":"git","url":"git+https://github.com/quansync-dev/fs.git"},"author":{"name":"三咲智子 Kevin Deng","email":"sxzz@sxzz.moe"},"funding":"https://github.com/sponsors/sxzz","main":"./dist/index.js","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":"./dist/index.js","./package.json":"./package.json"},"publishConfig":{"access":"public"},"dependencies":{"quansync":"^0.2.4"},"devDependencies":{"@sxzz/eslint-config":"^5.1.1","@sxzz/prettier-config":"^2.2.0","@types/node":"^22.13.5","bumpp":"^10.0.3","eslint":"^9.21.0","oxc-transform":"^0.53.0","prettier":"^3.5.2","tsdown":"^0.6.0","tsx":"^4.19.3","typescript":"^5.7.3","unplugin-quansync":"^0.3.3","vitest":"^3.0.7"},"engines":{"node":">=20.18.0"},"prettier":"@sxzz/prettier-config","scripts":{"lint":"eslint --cache .","lint:fix":"pnpm run lint --fix","build":"tsdown","dev":"tsdown --watch","test":"vitest","typecheck":"tsc --noEmit","format":"prettier --cache --write .","release":"bumpp && pnpm publish"},"_id":"@quansync/fs@0.1.0","_integrity":"sha512-7PR/AcQzhVbe9Q7GVZ7Fq4Y/PJDOuuujWGKGDdVjq2anoMv2Xx12qFH+CN5SFR1xABEXChpvm0l0gARFd6uQ7Q==","_resolved":"/private/var/folders/d9/9drlr87n4j904th57x6955l40000gn/T/176d7e0a47d70ad05d5d118a623b183e/quansync-fs-0.1.0.tgz","_from":"file:quansync-fs-0.1.0.tgz","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"shasum":"e78740013ac13ffd0380911ddd592ff8cfbf752a","size":2888,"noattachment":false,"key":"/@quansync/fs/-/@quansync/fs-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@quansync/fs/download/@quansync/fs-0.1.0.tgz"},"_npmUser":{"name":"sxzz","email":"sxzz@sxzz.moe"},"directories":{},"maintainers":[{"name":"sxzz","email":"sxzz@sxzz.moe"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/fs_0.1.0_1740716966980_0.24435993391587374"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-02-28T04:29:27.173Z","publish_time":1740716967173,"_source_registry_name":"default","_cnpm_publish_time":1740716967173}},"readme":"# @quansync/fs [![npm](https://img.shields.io/npm/v/@quansync/fs.svg)](https://npmjs.com/package/@quansync/fs)\n\n[![Unit Test](https://github.com/quansync-dev/fs/actions/workflows/unit-test.yml/badge.svg)](https://github.com/quansync-dev/fs/actions/workflows/unit-test.yml)\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 [三咲智子 Kevin Deng](https://github.com/sxzz)\n","_attachments":{},"homepage":"https://github.com/quansync-dev/fs#readme","bugs":{"url":"https://github.com/quansync-dev/fs/issues"},"license":"MIT"}