1.0.8 • Published 6 years ago

fs-explorer-ui v1.0.8

Weekly downloads
6
License
ISC
Repository
github
Last release
6 years ago

(fs-explorer-ui) Node Terminal File Explorer

A simple package for exploring directories in terminal around your project.

npm.io

Install

$ npm install fs-explorer-ui

Usage

Promise

const fsExplorerUI = require('fs-explorer-ui');

new fsExplorerUI({
	startPath: 'D:/your/path',
	message: 'This message will displayed above folder list',
	isolate: true
}).then(yourPath => { // Promise, return absolute path of the selected file/directory
    console.log('You choose file/directory', yourPath)
});

async, await

async function example() {
    const yourPath = await new fsExplorerUI({
    	startPath: 'D:/your/path',
    	message: 'This message will displayed above folder list',
    	isolate: true
    });
};

Options

This is on GitHub so let me know if I've broken it somewhere.