fs-explorer-ui
v1.0.8
Published
Simple package for exploring directories in terminal around your project
Downloads
5
Maintainers
Readme
(fs-explorer-ui) Node Terminal File Explorer
A simple package for exploring directories in terminal around your project.
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.