npm.io
1.0.2 • Published 8 years ago

open-file-explorer

Licence
Apache License 2.0
Version
1.0.2
Deps
0
Size
15 kB
Vulns
0
Weekly
0
Stars
17

nodejs-open-file-explorer

This module helps in opening explorer/finder in your OS programatically providing a very simple function to call.

Installation

  1. npm
npm install open-file-explorer --save
  1. Yarn
yarn add open-file-explorer

Usage

const openExplorer = require('open-file-explorer');
const path = 'C:\\Users';
openExplorer(path, err => {
    if(err) {
        console.log(err);
    }
    else {
        //Do Something
    }
});

Keywords