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

bulk-curd-files

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bulk-curd-files - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

2

lib/bulkDelete.d.ts

@@ -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(

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