## Classes
GZInfo
## Typedefs
HeaderInfo : object
FooterInfo : object
## GZInfo **Kind**: global class **Properties** | Name | Type | Description | | --- | --- | --- | | header | [HeaderInfo](#HeaderInfo) | Parsed details from the header. | | footer | [FooterInfo](#FooterInfo) | Parsed details from the footer. | | headerBuffer | Buffer | Raw header data. | | footerBuffer | Buffer | Raw footer data. | | stats | Stats | Information about the file gleaned from `fs.stat`. | | crc32 | int | Convenience property for `footer.crc32`. | | compressedSize | int | Convenience property for `stats.size`. | | uncompressedSize | int | Convenience property for `footer.uncompressedSize`. | * [GZInfo](#GZInfo) * [new GZInfo(file)](#new_GZInfo_new) * _instance_ * [.isAciiFile()](#GZInfo+isAciiFile) ⇒ boolean * [.hasCRC16()](#GZInfo+hasCRC16) ⇒ boolean * [.hasExtraFlags()](#GZInfo+hasExtraFlags) ⇒ boolean * [.hasOriginalFileName()](#GZInfo+hasOriginalFileName) ⇒ boolean * [.hasComment()](#GZInfo+hasComment) ⇒ boolean * [.isEncrypted()](#GZInfo+isEncrypted) ⇒ boolean * [.hasReservedFlags()](#GZInfo+hasReservedFlags) ⇒ boolean * _static_ * [.FLAGS](#GZInfo.FLAGS) : object * [.OS](#GZInfo.OS) : object * [.COMPRESSION_METHOD](#GZInfo.COMPRESSION_METHOD) : object ### new GZInfo(file) Reads information about a gzipped file. Such information includes: + level of compression used + date when the compression was performed + uncompressed size of the data The information is read *synchronously*. | Param | Type | Description | | --- | --- | --- | | file | string | Path to a gzipped file to read. | ### gzInfo.isAciiFile() ⇒ boolean Returns whether or not the compressed file is an ASCII file. According to the [manpage](http://linux.die.net/man/1/gzip), this is only supported on "some non-Unix systems." Thus, you'll probably only ever get `false` from this method. **Kind**: instance method of [GZInfo](#GZInfo) ### gzInfo.hasCRC16() ⇒ boolean Returns whether or not the header has a CRC16 value. If present, this checksum is only for the header. The checksum for the compressed file is in the footer. **Kind**: instance method of [GZInfo](#GZInfo) ### gzInfo.hasExtraFlags() ⇒ boolean Returns whether or not there is an extra header field with additional information. **Kind**: instance method of [GZInfo](#GZInfo) ### gzInfo.hasOriginalFileName() ⇒ boolean Returns whether or not there is an additional header field that contains the original name of the compressed file. **Kind**: instance method of [GZInfo](#GZInfo) ### gzInfo.hasComment() ⇒ boolean Returns whether or not there is an additional header field that contains a comment about the compressed file. **Kind**: instance method of [GZInfo](#GZInfo) ### gzInfo.isEncrypted() ⇒ boolean Returns whether or not the compressed data is encrypted. **Kind**: instance method of [GZInfo](#GZInfo) ### gzInfo.hasReservedFlags() ⇒ boolean Returns whether or not the reserved flags field is set. **Kind**: instance method of [GZInfo](#GZInfo) ### GZInfo.FLAGS : object Constants for verifying the `header.flags` bit field. **Kind**: static property of [GZInfo](#GZInfo) ### GZInfo.OS : object Constants for verifying the `header.operatingSystem` field. **Kind**: static property of [GZInfo](#GZInfo) ### GZInfo.COMPRESSION_METHOD : object Constants for validating the `header.compressionMethod` field. **Kind**: static property of [GZInfo](#GZInfo) ## HeaderInfo : object **Kind**: global typedef **Properties** | Name | Type | Description | | --- | --- | --- | | signature | string | The "magic" bytes of the header in hex format. | | compressionMethod | int | Value representing the compression method used. | | flags | int | Bit field indicating various flags set on the file. | | lastModified | Date | The date and time when the file was compressed. | | extraFlags | int | Bit field denoting extra information about the file. | | operatingSystem | int | Indicates the OS used to create the file. | ## FooterInfo : object **Kind**: global typedef **Properties** | Name | Type | Description | | --- | --- | --- | | crc32 | int | Checksum value for the compressed data. | | uncompressedSize | int | The size, in bytes, of the uncompressed data. |