{"name":"@types/tar-stream","version":"3.1.4","license":"MIT","_id":"@types/tar-stream@3.1.4","maintainers":[{"name":"types","email":"ts-npm-types@microsoft.com"}],"contributors":[{"url":"https://github.com/glicht","name":"Guy Lichtman","githubUsername":"glicht"},{"url":"https://github.com/peterblazejewicz","name":"Piotr Błażejewicz","githubUsername":"peterblazejewicz"},{"url":"https://github.com/kevin-lindsay-1","name":"Kevin Lindsay","githubUsername":"kevin-lindsay-1"},{"url":"https://github.com/screendriver","name":"Christian Rackerseder","githubUsername":"screendriver"}],"homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/tar-stream","dist":{"shasum":"7eca21004291f8d4803437fe20cc01b0744782a8","tarball":"http://registry-npm.ywwl.com/@types/tar-stream/download/@types/tar-stream-3.1.4.tgz","fileCount":5,"integrity":"sha512-921gW0+g29mCJX0fRvqeHzBlE/XclDaAG0Ousy1LCghsOhvaKacDeRGEVzQP9IPfKn8Vysy7FEXAIxycpc/CMg==","signatures":[{"sig":"MEUCIG8XWjob9iSj9dKHnzU2hSlAsmzTtBBgm8fsHKC71U1dAiEAufeRwPhAEsJy2BVSTICkUJUKSEdazLJYhu0n8zsnm0Y=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5853,"size":2583,"noattachment":false,"key":"/@types/tar-stream/-/@types/tar-stream-3.1.4.tgz"},"main":"","types":"index.d.ts","scripts":{},"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"repository":{"url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","type":"git","directory":"types/tar-stream"},"description":"TypeScript definitions for tar-stream","directories":{},"dependencies":{"@types/node":"*"},"_hasShrinkwrap":false,"peerDependencies":{},"typeScriptVersion":"5.1","_npmOperationalInternal":{"tmp":"tmp/tar-stream_3.1.4_1748878642567_0.7896829300711288","host":"s3://npm-registry-packages-npm-production"},"typesPublisherContentHash":"341cc4462392d9cf5a556a6cb26d69dacd3c78d919174b56406b72bbc4ad00ca","readme":"# Installation\r\n> `npm install --save @types/tar-stream`\r\n\r\n# Summary\r\nThis package contains type definitions for tar-stream (https://github.com/mafintosh/tar-stream).\r\n\r\n# Details\r\nFiles were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/tar-stream.\r\n## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/tar-stream/index.d.ts)\r\n````ts\r\n/// <reference types=\"node\" />\n\nimport stream = require(\"stream\");\n\nexport type Callback = (err?: Error | null) => any;\n\n// see https://github.com/mafintosh/tar-stream/blob/master/headers.js\nexport interface Headers {\n    name: string;\n    mode?: number | undefined;\n    uid?: number | undefined;\n    gid?: number | undefined;\n    size?: number | undefined;\n    mtime?: Date | undefined;\n    linkname?: string | null | undefined;\n    type?:\n        | \"file\"\n        | \"link\"\n        | \"symlink\"\n        | \"character-device\"\n        | \"block-device\"\n        | \"directory\"\n        | \"fifo\"\n        | \"contiguous-file\"\n        | \"pax-header\"\n        | \"pax-global-header\"\n        | \"gnu-long-link-path\"\n        | \"gnu-long-path\"\n        | null\n        | undefined;\n    uname?: string | undefined;\n    gname?: string | undefined;\n    devmajor?: number | undefined;\n    devminor?: number | undefined;\n}\n\nexport interface Pack extends stream.Readable {\n    /**\n     * To create a pack stream use tar.pack() and call pack.entry(header, [callback]) to add tar entries.\n     */\n    entry(headers: Headers, callback?: Callback): stream.Writable;\n    entry(headers: Headers, buffer?: string | Buffer, callback?: Callback): stream.Writable;\n    finalize(): void;\n    [Symbol.asyncIterator](): AsyncIteratorObject<Buffer, any, any>;\n}\n\nexport interface Entry extends stream.Readable {\n    header: Headers;\n    [Symbol.asyncIterator](): AsyncIteratorObject<Buffer, any, any>;\n}\n\nexport interface Extract extends stream.Writable {\n    on(event: string, listener: (...args: any[]) => void): this;\n    on(\n        event: \"entry\",\n        listener: (headers: Headers, stream: stream.PassThrough, next: (error?: unknown) => void) => void,\n    ): this;\n    [Symbol.asyncIterator](): AsyncIterableIterator<Entry>;\n}\n\nexport interface ExtractOptions extends stream.WritableOptions {\n    /**\n     * Whether or not to attempt to extract a file that does not have an\n     * officially supported format in the `magic` header, such as `ustar`.\n     */\n    allowUnknownFormat?: boolean | undefined;\n    /**\n     * The encoding of the file name header.\n     */\n    filenameEncoding?: BufferEncoding | undefined;\n}\nexport function extract(opts?: ExtractOptions): Extract;\n\nexport function pack(opts?: stream.ReadableOptions): Pack;\n\r\n````\r\n\r\n### Additional Details\r\n * Last updated: Mon, 28 Sep 2026 23:34:57 GMT\r\n * Dependencies: [@types/node](https://npmjs.com/package/@types/node)\r\n\r\n# Credits\r\nThese definitions were written by [Guy Lichtman](https://github.com/glicht), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Kevin Lindsay](https://github.com/kevin-lindsay-1), and [Christian Rackerseder](https://github.com/screendriver).\r\n","publish_time":1748878642733,"_cnpm_publish_time":1748878642733,"dist-tags":{"latest":"3.1.5","ts2.6":"1.6.1","ts2.7":"1.6.1","ts2.8":"2.1.0","ts2.9":"2.1.0","ts3.0":"2.1.0","ts3.1":"2.1.0","ts3.2":"2.1.0","ts3.3":"2.2.0","ts3.4":"2.2.0","ts3.5":"2.2.0","ts3.6":"2.2.1","ts3.7":"2.2.2","ts3.8":"2.2.2","ts3.9":"2.2.2","ts4.0":"2.2.2","ts4.1":"2.2.2","ts4.2":"2.2.2","ts4.3":"2.2.3","ts4.4":"2.2.3","ts4.5":"3.1.3","ts4.6":"3.1.3","ts4.7":"3.1.3","ts4.8":"3.1.3","ts4.9":"3.1.3","ts5.0":"3.1.3","ts5.1":"3.1.4","ts5.2":"3.1.4","ts5.3":"3.1.4","ts5.4":"3.1.4","ts5.5":"3.1.4","ts5.6":"3.1.5","ts5.7":"3.1.5","ts5.8":"3.1.5","ts5.9":"3.1.5","ts6.0":"3.1.5","ts7.0":"3.1.5","ts7.1":"3.1.5"}}