Socket
Socket
Sign inDemoInstall

@absolunet/fss

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

@absolunet/fss - npm Package Compare versions

Comparing version 1.5.0 to 1.6.0

4

index.js

@@ -89,3 +89,5 @@ //--------------------------------------------------------

get scandir() { return misc.scandir; }
get scandir() { return misc.scandir; }
get removeEmptyDir() { return misc.removeEmptyDir; }
get removePattern() { return misc.removePattern; }

@@ -92,0 +94,0 @@ }

@@ -6,7 +6,9 @@ //--------------------------------------------------------

const junk = require('junk');
const klaw = require('klaw-sync');
const minimatch = require('minimatch');
const ow = require('ow');
const path = require('path');
const deleteEmpty = require('delete-empty');
const junk = require('junk');
const klaw = require('klaw-sync');
const minimatch = require('minimatch');
const ow = require('ow');
const path = require('path');
const rimraf = require('rimraf');

@@ -16,3 +18,2 @@

//-- scandir
scandir(root, type, { recursive = false, fullPath = false, pattern = '**', keepJunk = false } = {}) {

@@ -50,2 +51,16 @@ ow(root, ow.string.nonEmpty);

removeEmptyDir(dir) {
ow(dir, ow.string.nonEmpty);
return deleteEmpty.sync(dir);
}
removePattern(pattern) {
ow(pattern, ow.string.nonEmpty);
rimraf.sync(pattern);
}
}

@@ -52,0 +67,0 @@

{
"name": "@absolunet/fss",
"version": "1.5.0",
"version": "1.6.0",
"description": "graceful-fs / fs-extra sync wrapper with goodies",

@@ -32,6 +32,7 @@ "definition": "",

"engines": {
"node": ">= 11.10.0"
"node": ">= 11.10.1"
},
"main": "index.js",
"dependencies": {
"delete-empty": "^2.0.0",
"fs-extra": "^7.0.0",

@@ -45,2 +46,3 @@ "graceful-fs": "^4.1.11",

"ow": "^0.12.0",
"rimraf": "^2.6.3",
"xml2js": "^0.4.19",

@@ -47,0 +49,0 @@ "xml2js-parser": "^1.1.1"

@@ -580,2 +580,29 @@ # @absolunet/fss

<!-- removeEmptyDir -->
### removeEmptyDir(root)
Uses [delete-empty](https://github.com/jonschlinkert/delete-empty) to recursively delete all empty folders in a directory and child directories<br>
Return `Array` of deleted directories
#### root
*Required*<br>
Type: `String`<br>
Path of root directory to scan
<br>
<!-- removePattern -->
### removePattern(pattern)
Uses [rimraf](https://github.com/isaacs/rimraf) to delete files and directories via a globbing pattern<br>
#### pattern
*Required*<br>
Type: `String`<br>
Globbing pattern
<br>
<!-- rename -->

@@ -582,0 +609,0 @@ ### rename

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