JSPM

open-file-explorer

1.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 6705
  • Score
    100M100P100Q119280F
  • License Apache License 2.0

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

Package Exports

  • open-file-explorer

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (open-file-explorer) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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