Comparing version 0.0.8 to 0.0.9
{ | ||
"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
49242
303
210
+ Added@magic/mime-types@0.0.5(transitive)
- Removed@magic/mime-types@0.0.4(transitive)
Updated@magic/mime-types@0.0.5