Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gzip-size

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gzip-size - npm Package Compare versions

Comparing version 4.0.0 to 4.0.1

2

index.js

@@ -9,3 +9,3 @@ 'use strict';

module.exports = (input, cb, options) => {
module.exports = (input, options) => {
if (!input) {

@@ -12,0 +12,0 @@ return Promise.resolve(0);

{
"name": "gzip-size",
"version": "4.0.0",
"version": "4.0.1",
"description": "Get the gzipped size of a string or buffer",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -16,3 +16,3 @@ # gzip-size [![Build Status](https://travis-ci.org/sindresorhus/gzip-size.svg?branch=master)](https://travis-ci.org/sindresorhus/gzip-size)

```js
cosnt gzipSize = require('gzip-size');
const gzipSize = require('gzip-size');
const text = 'Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.';

@@ -19,0 +19,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc