0.2.0 • Published 1 year ago

@uniiem/zip-pseudo-encryption v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@uniiem/zip-pseudo-encryption

GitHub Actions Workflow Status NPM Downloads NPM Version (with dist tag) npm bundle size GitHub License

Zip pseudo-encryption detection and generation in TypeScript.

Installation

npm install @uniiem/zip-pseudo-encryption

Usage

import { 
  detectZipPseudoEncryption,
  generateZipPseudoEncryption
} from '@uniiem/zip-pseudo-encryption';

// receive a File object
const file = new File([...], 'file.zip', { type: 'application/zip' });

// detection
detectZipPseudoEncryption(file).then((result) => {
  console.log(result); // "normal" | "encrypted" | "pseudo" | "broken" | "unknown"
});

// generation
generateZipPseudoEncryption(file).then(f => {
  // f is a new File object with pseudo-encryption
});

Sponsor

Buy me a coffee~

Support me on Patreon 爱发电

0.2.0

1 year ago

0.1.0

1 year ago