Skip to content

vibhor1997a/nodejs-open-file-explorer

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
June 25, 2018 17:36
June 25, 2018 17:36
June 25, 2018 18:16
June 25, 2018 17:36
June 25, 2018 18:16

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

2. 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
    }
});