1.0.3 • Published 8 months ago

open-explorer-cross-platform v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

open-explorer-cross-platform

A cross platform NodeJs module to open a folder in the native os file system.

Codacy Badge

Installation

npm install open-explorer-cross-platform

or

yarn add open-explorer-cross-platform

Usage

import openExplorer from 'open-explorer-cross-platform';

await openExplorer('path/to/folder');

Or if you want for some reason to force a specific platform:

import openExplorer, { Platform } from 'open-explorer-cross-platform';

const platform: Platform = 'linux'; // or 'win32' or 'darwin'

await openExplorer('path/to/folder', platform);

Typings exported

export type Platform = 'linux' | 'win32' | 'darwin';

License

MIT

1.0.3

8 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago