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

@magic/fs

Package Overview
Dependencies
Maintainers
2
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@magic/fs - npm Package Compare versions

Comparing version 0.0.8 to 0.0.9

10

package.json
{
"name": "@magic/fs",
"version": "0.0.8",
"version": "0.0.9",
"author": "Wizards & Witches",

@@ -40,5 +40,5 @@ "description": "nodejs fs promises + goodies",

"@magic-themes/docs": "0.0.11",
"@magic/core": "0.0.90",
"@magic/format": "0.0.16",
"@magic/test": "0.1.55"
"@magic/core": "0.0.91",
"@magic/format": "0.0.17",
"@magic/test": "0.1.56"
},

@@ -48,3 +48,3 @@ "dependencies": {

"@magic/error": "0.0.7",
"@magic/mime-types": "0.0.4",
"@magic/mime-types": "0.0.5",
"@magic/types": "0.1.13"

@@ -51,0 +51,0 @@ },

@@ -109,2 +109,7 @@ # @magic/fs

console.log(deepDirectories)
// recursive run with specified depth,
// just pass a number as second argument
const deepDirectoriesDepth2 = await fs.getDirectories(process.cwd(), 2)
console.log(deepDirectoriesDepth2)
}

@@ -129,2 +134,7 @@ run()

console.log(deepFiles)
// recursive run with specified depth,
// just pass a number as second argument
const deepDirectoriesDepth2 = await fs.getFiles(process.cwd(), 2)
console.log(deepDirectoriesDepth2)
}

@@ -178,2 +188,11 @@ run()

#### 0.0.9 - unreleased
* remove unused imports from getDirectories
* getDirectories and getFiles now accept a number as second argument.
```
// if a number is given instead of true/false, then this is the depth of recursion.
getFiles(directory, 2) // two levels down
```
#### 0.0.10 - unreleased
...

@@ -180,0 +199,0 @@

Sorry, the diff of this file is not supported yet

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