zip-a-folder
Advanced tools
Comparing version 0.0.9 to 0.0.10
{ | ||
"name": "zip-a-folder", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"description": "Forked the idea of @sole to zip a complete folder into a zip file but now using promises", | ||
@@ -5,0 +5,0 @@ "main": "lib/zip-a-folder.js", |
@@ -25,3 +25,3 @@ [![NPM](https://nodei.co/npm/zip-a-folder.png)](https://nodei.co/npm/zip-a-folder/) | ||
``` | ||
```js | ||
const { zip } = require('zip-a-folder'); | ||
@@ -37,3 +37,2 @@ | ||
ZipAFolder.main(); | ||
``` | ||
@@ -43,3 +42,3 @@ | ||
``` | ||
```js | ||
const zipFolder = require('zip-a-folder'); | ||
@@ -59,3 +58,2 @@ | ||
ZipAFolder.main(); | ||
``` | ||
@@ -62,0 +60,0 @@ |
declare module 'zip-a-folder' { | ||
export function zip(srcFolder: string, zipFilePath: string): Promise<void | Error>; | ||
export function zipFolder(srcFolder: string, zipFilePath: string, callback: (undefined | Error)): void; | ||
} | ||
export function zipFolder(srcFolder: string, zipFilePath: string, callback: (error?: Error) => void) : void; | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6171
88
66