{"name":"@quansync/fs","version":"0.1.5","author":{"name":"三咲智子 Kevin Deng","email":"sxzz@sxzz.moe"},"license":"MIT","_id":"@quansync/fs@0.1.5","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":"8d89bc7add93f9b77e053ff8293d5ca82199fb1f","tarball":"http://registry-npm.ywwl.com/@quansync/fs/download/@quansync/fs-0.1.5.tgz","fileCount":5,"integrity":"sha512-lNS9hL2aS2NZgNW7BBj+6EBl4rOf8l+tQ0eRY6JWCI8jI2kc53gSoqbjojU0OnAWhzoXiOjFyGsHcDGePB3lhA==","signatures":[{"sig":"MEUCIBJ9LCEdZtblGbBNsyOO2cwrwFJpzDGGZ+J/R6l5V9Y1AiEAvrm0DyzTfghYHQ3IuIEkLISBR3liDnQzcv8dQchUtaU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@quansync%2ffs@0.1.5","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":12422,"size":3244,"noattachment":false,"key":"/@quansync/fs/-/@quansync/fs-0.1.5.tgz"},"main":"./dist/index.js","type":"module","_from":"file:quansync-fs-0.1.5.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","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","lint:fix":"pnpm run lint --fix","typecheck":"tsc --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/e21b43ac642f2ca595636fb8b3abb3aa/quansync-fs-0.1.5.tgz","_integrity":"sha512-lNS9hL2aS2NZgNW7BBj+6EBl4rOf8l+tQ0eRY6JWCI8jI2kc53gSoqbjojU0OnAWhzoXiOjFyGsHcDGePB3lhA==","repository":{"url":"git+https://github.com/quansync-dev/fs.git","type":"git"},"_npmVersion":"11.5.2","description":"Filesystem utilities for Quansync","directories":{},"_nodeVersion":"22.18.0","dependencies":{"quansync":"^0.2.11"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.20.4","bumpp":"^10.2.3","eslint":"^9.33.0","tsdown":"^0.14.1","vitest":"^3.2.4","prettier":"^3.6.2","typescript":"^5.9.2","@types/node":"^24.3.0","@sxzz/eslint-config":"^7.1.2","@sxzz/prettier-config":"^2.2.3"},"_npmOperationalInternal":{"tmp":"tmp/fs_0.1.5_1755327594660_0.69972822249767","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":1755327594859,"_cnpm_publish_time":1755327594859,"dist-tags":{"latest":"1.1.0"}}