Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

open-file-explorer

vibhor1997a23.6kApache License 2.01.0.2TypeScript support: definitely-typed

Open the given file path in the File explorer in your OS

file, explorer, file explorer, open

readme

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