Socket
Book a DemoInstallSign in
Socket

sdactivity

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sdactivity

Crude SDCard Media Monitor

latest
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

SDActivity

Detect mount/unmount of sd card (or any path, really) on file system.

Installation

npm install sdactivity

Usage

var SDActivity = require("sdactivity");

var sd = new SDActivity({
  sdpath: "/dev/sdd1" // or "/media/sdcard"
});

sd.on("mount", function() {
  console.log("Mount");
});

sd.on("unmount", function() {
  console.log("Unmount");
});

See Examples for more.

License

Copyright (c) 2016 Rick Waldron waldron.rick@gmail.com Licensed under the MIT license. See LICENSE-MIT

FAQs

Package last updated on 21 Jun 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts