webstorm-directory-selector
    TypeScript icon, indicating that this package has built-in type declarations

    0.1.3 • Public • Published

    webstorm-directory-selector

    ~ Not Ready / Don't use ~

    a directory selector like webstorm-directory-selector.

    screenshot

    env and compatibility

    base on electron

    browerlist

    electron build-in chromium
    

    guide

    install

    npm install webstorm-directory-selector -S 

    config

    // import it in mian.js or other place can add ipc listtener
    import 'webstorm-directory-selector/ipc-listtener';

    use case

    import 'directorySelector' from webstorm-directory-selector;
    
    (async () => {
      try {
        const dirObject = await directorySelector.open();
        console.log(dirObject.name);
        console.dir(dirObject);
      } catch (error) {
        console.error(reason);
      }
    })();
    
    
    // or 
    
    directorySelector.open({
      currentPath: 'C:path',
      reacentPathlist: ['C:path', 'C:kk'],
      diableCmdlist: [],
      idPathInputDisplay: false,
      showHiddenFile: false
    }).then((dirObject) = > {
      console.log(dirObject.name);
      console.dir(dirObject);
    }).catch(reason => {
      console.error(reason);
    })
    

    API

    dirObject

    property mean type
    * * *

    License

    MIT

    Install

    npm i webstorm-directory-selector

    DownloadsWeekly Downloads

    3

    Version

    0.1.3

    License

    MIT

    Unpacked Size

    11.6 kB

    Total Files

    7

    Last publish

    Collaborators

    • chwan