binshell

1.0.0 • Public • Published

BinShell

BinShell is a package for accessing Windows Recycle Bin Directory Natively from Node.js

Installation

Using npm

npm install binshell

Using yarn

yarn add binshell

Usage

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 dir_content = BinShell.readBinSync();

It also have a getter to get the Bin Path.

  • binPath: returns a string to the recycle bin path

License

BinShell is Licensed under Apache License Version 2.0

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i binshell

      Weekly Downloads

      2

      Version

      1.0.0

      License

      ISC

      Unpacked Size

      15.6 kB

      Total Files

      6

      Last publish

      Collaborators

      • haneenmahdin