bulk-curd-files
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -1,1 +0,1 @@ | ||
export default function bulkDelete(dir: string, targetFileName: string, ignoreFolder: string): Promise<void>; | ||
export default function bulkDelete(dir: string, targetFileName: string, ignoreFolder?: string): Promise<void>; |
{ | ||
"name": "bulk-curd-files", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "A files bulk curd lib", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -11,3 +11,3 @@ # A files bulk curd lib | ||
//create fileB by copying fileA in bulk | ||
bulkCopy(path.resolve(\_\_dirname, ''), 'fileA.ts', 'fileB.ts'); | ||
bulkCopy(path.resolve(__dirname, './'), 'fileA.ts', 'fileB.ts'); | ||
@@ -14,0 +14,0 @@ //delete fileA exclude node_modules folder in bulk |
@@ -5,3 +5,3 @@ import fs from 'fs' | ||
export default async function bulkDelete(dir: string, targetFileName: string, ignoreFolder: string) { | ||
export default async function bulkDelete(dir: string, targetFileName: string, ignoreFolder?: string) { | ||
const files = fs.readdirSync(dir) | ||
@@ -8,0 +8,0 @@ await Promise.all( |
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
24231