{"_id":"extract-files@14.0.0","bugs":{"url":"https://github.com/jaydenseric/extract-files/issues"},"dist":{"shasum":"2520da6477f92bbf6a23dce8290fedb1a628d0b1","tarball":"http://registry-npm.ywwl.com/extract-files/download/extract-files-14.0.0.tgz","fileCount":5,"integrity":"sha512-VAoB+AlrOpQGciq2TswLpuaSx9DYRr0rE/TFj7VxsLuqPfD2U4bZPP/n2mKdfsvLHmWXLQdOsjunD/9Gx3RWIQ==","signatures":[{"sig":"MEQCIH4ByLaLHZ7elSKxsqV7ZpG/s28vU2DeFq0GxPvGVIDdAiB70yWhpzjVynHi6/B1F7qFS+eVeQvLxv/9f+AjyzTS6w==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCFMVpBixR5Xxr3nxrut5/ajjOqRJizdSLH9oj+81QkdQIgIRaOxvacJ7ajLrWVCTgqoeAnQPzuU/ux/Hb3/8bkCbk="}],"unpackedSize":12364,"size":4463,"noattachment":false,"key":"/extract-files/-/extract-files-14.0.0.tgz"},"name":"extract-files","author":{"url":"https://jaydenseric.com","name":"Jayden Seric","email":"me@jaydenseric.com"},"engines":{"node":"^22.13.0 || ^24.0.0 || >=26.0.0"},"exports":{"./package.json":"./package.json","./extractFiles.mjs":"./extractFiles.mjs","./isExtractableFile.mjs":"./isExtractableFile.mjs"},"funding":"https://github.com/sponsors/jaydenseric","gitHead":"3bacc2d78b7729e7dba40ac026ffcb0a2d33cc1f","license":"MIT","scripts":{"test":"node --test --experimental-test-coverage --test-coverage-lines=100 --test-coverage-branches=100 --test-coverage-functions=100 --test-coverage-exclude='**/*.test.*' --test-coverage-exclude='test-helpers/**' --test-reporter=spec","check":"node --run prettier && node --run eslint && node --run types && node --run test","types":"tsc -p jsconfig.json","eslint":"eslint","prettier":"prettier -c .","prepublishOnly":"node --run check"},"version":"14.0.0","_npmUser":{"name":"jaydenseric","email":"me@jaydenseric.com"},"homepage":"https://github.com/jaydenseric/extract-files#readme","keywords":["extract","file","files","File","FileList","Blob","esm","mjs"],"repository":{"url":"git+https://github.com/jaydenseric/extract-files.git","type":"git"},"_npmVersion":"11.17.0","description":"A function to recursively extract files and their object paths within a value, replacing them with null in a deep clone without mutating the original value. FileList instances are treated as File instance arrays. Files are typically File and Blob instance","directories":{},"maintainers":[{"name":"jaydenseric","email":"me@jaydenseric.com"}],"sideEffects":false,"_nodeVersion":"26.5.0","browserslist":"Node 22.13 - 23 and Node < 23, Node 24 - 25 and Node < 25, Node >= 26, > 0.5%, not OperaMini all, not dead","dependencies":{"is-plain-obj":"^4.1.0"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^10.7.0","esbuild":"^0.28.1","globals":"^17.7.0","prettier":"^3.9.6","gzip-size":"^7.0.0","@eslint/js":"^10.0.1","typescript":"^7.0.2","@types/node":"^26.1.1","revertable-globals":"^4.0.0","eslint-plugin-simple-import-sort":"^14.0.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/extract-files_14.0.0_1784876023363_0.7212269889068565"},"readme":"# extract-files\n\nA function to recursively extract files and their object paths within a value, replacing them with `null` in a deep clone without mutating the original value. [`FileList`](https://developer.mozilla.org/en-US/docs/Web/API/FileList) instances are treated as [`File`](https://developer.mozilla.org/en-US/docs/Web/API/File) instance arrays. Files are typically [`File`](https://developer.mozilla.org/en-US/docs/Web/API/File) and [`Blob`](https://developer.mozilla.org/en-US/docs/Web/API/Blob) instances.\n\nUsed by [GraphQL multipart request spec client implementations](https://github.com/jaydenseric/graphql-multipart-request-spec#implementations) such as [`graphql-react`](https://npm.im/graphql-react) and [`apollo-upload-client`](https://npm.im/apollo-upload-client).\n\n## Installation\n\nFor [Node.js](https://nodejs.org), to install [`extract-files`](https://npm.im/extract-files) with [npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm), run:\n\n```sh\nnpm install extract-files\n```\n\nFor [Deno](https://deno.land) and browsers, an example import map:\n\n```json\n{\n  \"imports\": {\n    \"extract-files/\": \"https://unpkg.com/extract-files@14.0.0/\",\n    \"is-plain-obj\": \"https://unpkg.com/is-plain-obj@4.1.0/index.js\",\n    \"is-plain-obj/\": \"https://unpkg.com/is-plain-obj@4.1.0/\"\n  }\n}\n```\n\nSee the function [`extractFiles`](./extractFiles.mjs) to get started.\n\n## Requirements\n\nSupported runtime environments:\n\n- [Node.js](https://nodejs.org) versions `^22.13.0 || ^24.0.0 || >=26.0.0`.\n- [Deno](https://deno.land), importing from a CDN that might require an import map for dependencies.\n- Browsers matching the [Browserslist](https://browsersl.ist) query [`> 0.5%, not OperaMini all, not dead`](https://browsersl.ist/?q=%3E+0.5%25%2C+not+OperaMini+all%2C+not+dead).\n\nNon [Deno](https://deno.land) projects must configure [TypeScript](https://typescriptlang.org) to use types from the ECMAScript modules that have a `// @ts-check` comment:\n\n- [`compilerOptions.allowJs`](https://typescriptlang.org/tsconfig#allowJs) should be `true`.\n- [`compilerOptions.maxNodeModuleJsDepth`](https://typescriptlang.org/tsconfig#maxNodeModuleJsDepth) should be reasonably large, e.g. `10`.\n- [`compilerOptions.module`](https://typescriptlang.org/tsconfig#module) should be `\"node16\"` or `\"nodenext\"`.\n\n## Exports\n\nThe [npm](https://npmjs.com) package [`extract-files`](https://npm.im/extract-files) features [optimal JavaScript module design](https://jaydenseric.com/blog/optimal-javascript-module-design). It doesn’t have a main index module, so use deep imports from the ECMAScript modules that are exported via the [`package.json`](./package.json) field [`exports`](https://nodejs.org/api/packages.html#exports):\n\n- [`extractFiles.mjs`](./extractFiles.mjs)\n- [`isExtractableFile.mjs`](./isExtractableFile.mjs)\n","publish_time":1784876023463,"_cnpm_publish_time":1784876023463,"dist-tags":{"latest":"14.0.0"}}