├── .github ├── dependabot.yml └── workflows │ ├── ci.yml │ ├── convergence.yml │ ├── generated-pr.yml │ ├── release.yml │ └── stale.yml ├── .gitignore ├── .vscode └── launch.json ├── CHANGELOG.md ├── LICENSE-APACHE ├── README.md ├── gen ├── Readme.md ├── unixfs.js └── unixfs.ts ├── package.json ├── scripts ├── gen.js └── matrix.js ├── src ├── api.js ├── api.ts ├── codec.js ├── directory.js ├── directory │ ├── api.js │ └── api.ts ├── file.js ├── file │ ├── api.js │ ├── api.ts │ ├── chunker.js │ ├── chunker │ │ ├── api.js │ │ ├── api.ts │ │ ├── buffer.js │ │ ├── fixed.js │ │ ├── indexed.js │ │ ├── indexed.ts │ │ └── rabin.js │ ├── layout │ │ ├── api.js │ │ ├── api.ts │ │ ├── balanced.js │ │ ├── builder.js │ │ ├── queue.js │ │ ├── queue │ │ │ ├── api.js │ │ │ └── api.ts │ │ └── trickle.js │ └── writer.js ├── lib.js ├── sharded-directory.js ├── unixfs.js ├── unixfs.ts └── writer │ ├── api.js │ ├── api.ts │ └── util.js ├── test ├── codec.spec.js ├── convergence.js ├── dataset │ ├── convergence_mismatches.csv │ ├── convergence_rawdata.js │ ├── convergence_rawdata.tsv │ └── testdata │ │ ├── large_repeat_1GiB.zst │ │ ├── large_repeat_5GiB.zst │ │ ├── prand_64MiB.zst │ │ ├── rand_5MiB.zst │ │ ├── repeat_0.04GiB_174.zst │ │ ├── repeat_0.04GiB_174_1.zst │ │ ├── repeat_0.04GiB_175.zst │ │ ├── repeat_0.04GiB_175_1.zst │ │ ├── uicro_1B.zst │ │ ├── uicro_34B.zst │ │ ├── uicro_50B.zst │ │ └── zero_0B.zst ├── directory.spec.js ├── file.spec.js ├── file │ ├── chunker │ │ └── buffer.spec.js │ └── layout │ │ ├── balanced.spec.js │ │ ├── queue.spec.js │ │ ├── trickle.spec.js │ │ └── util.js ├── fixtures.js ├── lib.spec.js ├── matrix.js ├── sharded-directory.spec.js ├── ts-use │ ├── main.ts │ ├── package.json │ └── tsconfig.json ├── util.js └── writer.spec.js ├── tsconfig.json ├── unixfs.proto └── yarn.lock /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.github/workflows/convergence.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/.github/workflows/convergence.yml -------------------------------------------------------------------------------- /.github/workflows/generated-pr.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/.github/workflows/generated-pr.yml -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/.github/workflows/release.yml -------------------------------------------------------------------------------- /.github/workflows/stale.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/.github/workflows/stale.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | dist 2 | .nyc_output 3 | tmp 4 | node_modules 5 | coverage 6 | -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/.vscode/launch.json -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE-APACHE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/LICENSE-APACHE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/README.md -------------------------------------------------------------------------------- /gen/Readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/gen/Readme.md -------------------------------------------------------------------------------- /gen/unixfs.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/gen/unixfs.js -------------------------------------------------------------------------------- /gen/unixfs.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/gen/unixfs.ts -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/package.json -------------------------------------------------------------------------------- /scripts/gen.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/scripts/gen.js -------------------------------------------------------------------------------- /scripts/matrix.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/scripts/matrix.js -------------------------------------------------------------------------------- /src/api.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/src/api.js -------------------------------------------------------------------------------- /src/api.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/src/api.ts -------------------------------------------------------------------------------- /src/codec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/src/codec.js -------------------------------------------------------------------------------- /src/directory.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/src/directory.js -------------------------------------------------------------------------------- /src/directory/api.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/src/directory/api.js -------------------------------------------------------------------------------- /src/directory/api.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/src/directory/api.ts -------------------------------------------------------------------------------- /src/file.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/src/file.js -------------------------------------------------------------------------------- /src/file/api.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/src/file/api.js -------------------------------------------------------------------------------- /src/file/api.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/src/file/api.ts -------------------------------------------------------------------------------- /src/file/chunker.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/src/file/chunker.js -------------------------------------------------------------------------------- /src/file/chunker/api.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/src/file/chunker/api.js -------------------------------------------------------------------------------- /src/file/chunker/api.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/src/file/chunker/api.ts -------------------------------------------------------------------------------- /src/file/chunker/buffer.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/src/file/chunker/buffer.js -------------------------------------------------------------------------------- /src/file/chunker/fixed.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/src/file/chunker/fixed.js -------------------------------------------------------------------------------- /src/file/chunker/indexed.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/src/file/chunker/indexed.js -------------------------------------------------------------------------------- /src/file/chunker/indexed.ts: -------------------------------------------------------------------------------- 1 | export declare class Indexed { 2 | readonly [n: number]: T 3 | } 4 | -------------------------------------------------------------------------------- /src/file/chunker/rabin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/src/file/chunker/rabin.js -------------------------------------------------------------------------------- /src/file/layout/api.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/src/file/layout/api.js -------------------------------------------------------------------------------- /src/file/layout/api.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/src/file/layout/api.ts -------------------------------------------------------------------------------- /src/file/layout/balanced.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/src/file/layout/balanced.js -------------------------------------------------------------------------------- /src/file/layout/builder.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/src/file/layout/builder.js -------------------------------------------------------------------------------- /src/file/layout/queue.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/src/file/layout/queue.js -------------------------------------------------------------------------------- /src/file/layout/queue/api.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/src/file/layout/queue/api.js -------------------------------------------------------------------------------- /src/file/layout/queue/api.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/src/file/layout/queue/api.ts -------------------------------------------------------------------------------- /src/file/layout/trickle.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/src/file/layout/trickle.js -------------------------------------------------------------------------------- /src/file/writer.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/src/file/writer.js -------------------------------------------------------------------------------- /src/lib.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/src/lib.js -------------------------------------------------------------------------------- /src/sharded-directory.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/src/sharded-directory.js -------------------------------------------------------------------------------- /src/unixfs.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/src/unixfs.js -------------------------------------------------------------------------------- /src/unixfs.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/src/unixfs.ts -------------------------------------------------------------------------------- /src/writer/api.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/src/writer/api.js -------------------------------------------------------------------------------- /src/writer/api.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/src/writer/api.ts -------------------------------------------------------------------------------- /src/writer/util.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/src/writer/util.js -------------------------------------------------------------------------------- /test/codec.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/test/codec.spec.js -------------------------------------------------------------------------------- /test/convergence.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/test/convergence.js -------------------------------------------------------------------------------- /test/dataset/convergence_mismatches.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/test/dataset/convergence_mismatches.csv -------------------------------------------------------------------------------- /test/dataset/convergence_rawdata.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/test/dataset/convergence_rawdata.js -------------------------------------------------------------------------------- /test/dataset/convergence_rawdata.tsv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/test/dataset/convergence_rawdata.tsv -------------------------------------------------------------------------------- /test/dataset/testdata/large_repeat_1GiB.zst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/test/dataset/testdata/large_repeat_1GiB.zst -------------------------------------------------------------------------------- /test/dataset/testdata/large_repeat_5GiB.zst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/test/dataset/testdata/large_repeat_5GiB.zst -------------------------------------------------------------------------------- /test/dataset/testdata/prand_64MiB.zst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/test/dataset/testdata/prand_64MiB.zst -------------------------------------------------------------------------------- /test/dataset/testdata/rand_5MiB.zst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/test/dataset/testdata/rand_5MiB.zst -------------------------------------------------------------------------------- /test/dataset/testdata/repeat_0.04GiB_174.zst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/test/dataset/testdata/repeat_0.04GiB_174.zst -------------------------------------------------------------------------------- /test/dataset/testdata/repeat_0.04GiB_174_1.zst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/test/dataset/testdata/repeat_0.04GiB_174_1.zst -------------------------------------------------------------------------------- /test/dataset/testdata/repeat_0.04GiB_175.zst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/test/dataset/testdata/repeat_0.04GiB_175.zst -------------------------------------------------------------------------------- /test/dataset/testdata/repeat_0.04GiB_175_1.zst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/test/dataset/testdata/repeat_0.04GiB_175_1.zst -------------------------------------------------------------------------------- /test/dataset/testdata/uicro_1B.zst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/test/dataset/testdata/uicro_1B.zst -------------------------------------------------------------------------------- /test/dataset/testdata/uicro_34B.zst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/test/dataset/testdata/uicro_34B.zst -------------------------------------------------------------------------------- /test/dataset/testdata/uicro_50B.zst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/test/dataset/testdata/uicro_50B.zst -------------------------------------------------------------------------------- /test/dataset/testdata/zero_0B.zst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/test/dataset/testdata/zero_0B.zst -------------------------------------------------------------------------------- /test/directory.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/test/directory.spec.js -------------------------------------------------------------------------------- /test/file.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/test/file.spec.js -------------------------------------------------------------------------------- /test/file/chunker/buffer.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/test/file/chunker/buffer.spec.js -------------------------------------------------------------------------------- /test/file/layout/balanced.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/test/file/layout/balanced.spec.js -------------------------------------------------------------------------------- /test/file/layout/queue.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/test/file/layout/queue.spec.js -------------------------------------------------------------------------------- /test/file/layout/trickle.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/test/file/layout/trickle.spec.js -------------------------------------------------------------------------------- /test/file/layout/util.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/test/file/layout/util.js -------------------------------------------------------------------------------- /test/fixtures.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/test/fixtures.js -------------------------------------------------------------------------------- /test/lib.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/test/lib.spec.js -------------------------------------------------------------------------------- /test/matrix.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/test/matrix.js -------------------------------------------------------------------------------- /test/sharded-directory.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/test/sharded-directory.spec.js -------------------------------------------------------------------------------- /test/ts-use/main.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/test/ts-use/main.ts -------------------------------------------------------------------------------- /test/ts-use/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/test/ts-use/package.json -------------------------------------------------------------------------------- /test/ts-use/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/test/ts-use/tsconfig.json -------------------------------------------------------------------------------- /test/util.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/test/util.js -------------------------------------------------------------------------------- /test/writer.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/test/writer.spec.js -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/tsconfig.json -------------------------------------------------------------------------------- /unixfs.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/unixfs.proto -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipld/js-unixfs/HEAD/yarn.lock --------------------------------------------------------------------------------