@bscotch/utility
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -0,1 +1,5 @@ | ||
## [0.2.1](https://github.com/bscotch/node-util/compare/v0.2.0...v0.2.1) (2020-10-08) | ||
# [0.2.0](https://github.com/bscotch/node-util/compare/v0.1.0...v0.2.0) (2020-10-08) | ||
@@ -2,0 +6,0 @@ |
{ | ||
"name": "@bscotch/utility", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Bscotch Utilities: Methods for common Node.js needs.", | ||
@@ -5,0 +5,0 @@ "engines": { |
@@ -104,2 +104,21 @@ # Bscotch Utilities | ||
``` | ||
``` | ||
## Files | ||
```ts | ||
import { | ||
listPathsSync, | ||
listFoldersSync, | ||
listFilesSync, | ||
listFilesByExtensionSync, | ||
} from '@bscotch/utility'; | ||
const recursive = true; | ||
listPathsSync('.',recursive); // => paths to all files and folders in cwd | ||
listFoldersSync('.',recursive); // => the subset of paths that are folders | ||
listFilesSync('.',recursive); // => the subset of paths that are files | ||
listFilesByExtensionSync('.','txt',recursive); // => the subset of files that end with '.txt' | ||
listFilesByExtensionSync('.',['txt','md'],recursive); // => the subset of files that end with '.txt' or '.md' | ||
``` |
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
20996
124