BinShell is a package for accessing Windows Recycle Bin Directory Natively from Node.js
Using npm
npm install binshell
Using yarn
yarn add binshell
There are two main static functions inside the class BinShell
.
readBin
: reads the directory asynchronously (non-blocking)
import BinShell from "binshell";
BinShell.readBin((err, data) => {
for (const d in data) {
console.log(d);
}
});
readBinSync
: reads the directory synchonously
import BinShell from "binshell";
const binContent = BinShell.readBinSync();
console.log(binContent);
It also have a getter to get the Bin Path.
binPath
: returns a string to the recycle bin path
Open this project in gitpod.
Feel free to contribute to this project.
BinShell is Licensed under Apache License Version 2.0