Socket
Socket
Sign inDemoInstall

minizlib

Package Overview
Dependencies
Maintainers
6
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

minizlib - npm Package Compare versions

Comparing version 2.1.2 to 3.0.0

dist/commonjs/constants.d.ts

59

package.json
{
"name": "minizlib",
"version": "2.1.2",
"version": "3.0.0",
"description": "A small fast zlib stream built on [minipass](http://npm.im/minipass) and Node.js's zlib binding.",
"main": "index.js",
"main": "./dist/commonjs/index.js",
"dependencies": {
"minipass": "^3.0.0",
"yallist": "^4.0.0"
"minipass": "^7.0.4",
"rimraf": "^5.0.5"
},
"scripts": {
"test": "tap test/*.js --100 -J",
"prepare": "tshy",
"pretest": "npm run prepare",
"test": "tap",
"preversion": "npm test",
"postversion": "npm publish",
"postpublish": "git push origin --all; git push origin --tags"
"prepublishOnly": "git push origin --follow-tags",
"format": "prettier --write . --loglevel warn",
"typedoc": "typedoc --tsconfig .tshy/esm.json ./src/*.ts"
},

@@ -33,11 +37,46 @@ "repository": {

"devDependencies": {
"tap": "^14.6.9"
"@types/node": "^20.11.29",
"mkdirp": "^3.0.1",
"tap": "^18.7.1",
"tshy": "^1.12.0",
"typedoc": "^0.25.12"
},
"files": [
"index.js",
"constants.js"
"dist"
],
"engines": {
"node": ">= 8"
"node": ">= 18"
},
"tshy": {
"exports": {
"./package.json": "./package.json",
".": "./src/index.ts"
}
},
"exports": {
"./package.json": "./package.json",
".": {
"import": {
"types": "./dist/esm/index.d.ts",
"default": "./dist/esm/index.js"
},
"require": {
"types": "./dist/commonjs/index.d.ts",
"default": "./dist/commonjs/index.js"
}
}
},
"types": "./dist/commonjs/index.d.ts",
"type": "module",
"prettier": {
"semi": false,
"printWidth": 75,
"tabWidth": 2,
"useTabs": false,
"singleQuote": true,
"jsxSingleQuote": false,
"bracketSameLine": true,
"arrowParens": "avoid",
"endOfLine": "lf"
}
}

8

README.md

@@ -12,3 +12,3 @@ # minizlib

## How does this differ from the streams in `require('zlib')`?
## How does this differ from the streams in `'node:zlib'`?

@@ -49,5 +49,7 @@ First, there are no convenience methods to compress or decompress a

```js
const zlib = require('minizlib')
import { BrotliDecompress } from 'minizlib'
// or: const BrotliDecompress = require('minizlib')
const input = sourceOfCompressedData()
const decode = new zlib.BrotliDecompress()
const decode = new BrotliDecompress()
const output = whereToWriteTheDecodedData()

@@ -54,0 +56,0 @@ input.pipe(decode).pipe(output)

Sorry, the diff of this file is not supported yet

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