{"_id":"@quansync/fs@1.1.0","bugs":{"url":"https://github.com/quansync-dev/fs/issues"},"dist":{"shasum":"3b6325031dcd125f69203192a10fc8fedba2c5d3","tarball":"http://registry-npm.ywwl.com/@quansync/fs/download/@quansync/fs-1.1.0.tgz","integrity":"sha512-qAPG/t3HqML1TlN7sY/pTbEjzFVAKsMjNNMGheyDosro+kT4iw2KCUoHcVdmliwWjorm4elZbgNQyU2eD97eDg==","fileCount":5,"unpackedSize":12880,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@quansync%2ffs@1.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIDBXNI0b+fAUkVyAjDKZpk6CMJMQ2um2WiPhLwa1f+3nAiEAhnjacnfQbnXzOPHcZcLuIW8Zhq7ENP2VIZ1fGUG+qzs="}],"size":3389,"noattachment":false,"key":"/@quansync/fs/-/@quansync/fs-1.1.0.tgz"},"name":"@quansync/fs","type":"module","author":"Kevin Deng <sxzz@sxzz.moe>","exports":{".":"./dist/index.mjs","./package.json":"./package.json"},"funding":"https://github.com/sponsors/sxzz","license":"MIT","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"},"version":"1.1.0","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:e0ac3765-34b8-4de7-8ad7-22e209b7fbe8"},"approver":{"name":"sxzz","email":"npm@sxzz.moe"}},"homepage":"https://github.com/quansync-dev/fs#readme","prettier":"@sxzz/prettier-config","devEngines":{"packageManager":{"name":"pnpm","onFail":"download","version":"12.4.2"}},"repository":{"url":"git+https://github.com/quansync-dev/fs.git","type":"git"},"description":"Filesystem utilities for Quansync","directories":{},"maintainers":[{"name":"sxzz","email":"npm@sxzz.moe"}],"dependencies":{"quansync":"^1.0.0"},"publishConfig":{"access":"public"},"devDependencies":{"bumpp":"^12.3.0","eslint":"^10.10.0","tsdown":"^0.23.0","vitest":"^5.0.1","prettier":"^3.9.7","typescript":"^6.0.3","@types/node":"^25.5.0","tsdown-preset-sxzz":"^0.7.1","@sxzz/eslint-config":"^8.6.0","@sxzz/prettier-config":"^2.3.3","@typescript/native-preview":"npm:typescript@^7.0.2"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/fs_1.1.0_1789574474980_0.034472604104344606"},"_hasShrinkwrap":false,"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":1789574475067,"_cnpm_publish_time":1789574475067,"dist-tags":{"latest":"1.1.0"}}