{"name":"@quansync/fs","version":"0.1.6","author":{"name":"Kevin Deng","email":"sxzz@sxzz.moe"},"license":"MIT","_id":"@quansync/fs@0.1.6","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":"53af6c349d9fb478bb40b532e010518f1b88ec9c","tarball":"http://registry-npm.ywwl.com/@quansync/fs/download/@quansync/fs-0.1.6.tgz","fileCount":5,"integrity":"sha512-zoA8SqQO11qH9H8FCBR7NIbowYARIPmBz3nKjgAaOUDi/xPAAu1uAgebtV7KXHTc6CDZJVRZ1u4wIGvY5CWYaw==","signatures":[{"sig":"MEYCIQCei6artHJMwnaOOsU0mPgfDhPa/Wv16Js5I/6ebuhONQIhANThTo7Zdo/Zoy/b7dk53LENE3/MrwCRBFBoW5O8lJw/","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@quansync%2ffs@0.1.6","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":12835,"size":3328,"noattachment":false,"key":"/@quansync/fs/-/@quansync/fs-0.1.6.tgz"},"main":"./dist/index.mjs","type":"module","_from":"file:quansync-fs-0.1.6.tgz","types":"./dist/index.d.mts","module":"./dist/index.mjs","exports":{".":"./dist/index.mjs","./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","lint:fix":"pnpm run lint --fix","typecheck":"tsgo --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:e0ac3765-34b8-4de7-8ad7-22e209b7fbe8"}},"prettier":"@sxzz/prettier-config","_resolved":"/tmp/1eb454fe37aa691653586dc7666e540d/quansync-fs-0.1.6.tgz","_integrity":"sha512-zoA8SqQO11qH9H8FCBR7NIbowYARIPmBz3nKjgAaOUDi/xPAAu1uAgebtV7KXHTc6CDZJVRZ1u4wIGvY5CWYaw==","repository":{"url":"git+https://github.com/quansync-dev/fs.git","type":"git"},"_npmVersion":"11.6.2","description":"Filesystem utilities for Quansync","directories":{},"_nodeVersion":"24.11.1","dependencies":{"quansync":"^0.3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.21.0","bumpp":"^10.3.2","eslint":"^9.39.1","tsdown":"^0.17.0-beta.5","vitest":"^4.0.15","prettier":"^3.7.3","typescript":"^5.9.3","@types/node":"^24.10.1","@sxzz/eslint-config":"^7.4.1","@sxzz/prettier-config":"^2.2.6","@typescript/native-preview":"7.0.0-dev.20251202.1"},"_npmOperationalInternal":{"tmp":"tmp/fs_0.1.6_1764711352368_0.3161753687300264","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":1764711352583,"_cnpm_publish_time":1764711352583,"dist-tags":{"latest":"1.1.0"}}