1. is-gzip
Check if a Buffer/Uint8Array is a GZIP file
is-gzip
Package: is-gzip
Created by: kevva
Last modified: Sun, 19 Jun 2022 02:42:29 GMT
Version: 2.0.0
License: MIT
Downloads: 14,142,337
Repository: https://github.com/kevva/is-gzip

Install

npm install is-gzip
yarn add is-gzip

is-gzip Build Status

Check if a Buffer/Uint8Array is a GZIP file

Install

$ npm install is-gzip

Usage

 const fs = require('fs');
const isGzip = require('is-gzip');

isGzip(fs.readFileSync('foo.tar.gz'));
//=> true

License

MIT © Kevin Mårtensson

Dependencies

RELATED POST

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin