lib/cli/nodemcu-tool.js
async function mkfs(){

    // try to establish a connection to the module
    await getConnection();

    _mculogger.log('Formatting the file system...this will take around ~30s');

    try{
        const response = await _nodeMcuConnector.format();

        // just show complete message
        _mculogger.log('File System created | ' + response);
    }catch(e){
        _mculogger.error('Formatting failed');
        _logger.debug(e);
    }
}
async function mkfs(){

    // try to establish a connection to the module
    await getConnection();

    _mculogger.log('Formatting the file system...this will take around ~30s');

    try{
        const response = await _nodeMcuConnector.format();

        // just show complete message
        _mculogger.log('File System created | ' + response);
    }catch(e){
        _mculogger.error('Formatting failed');
        _logger.debug(e);
    }
}
async function mkfs ( ) { // try to establish a connection to the module await getConnection ( ) ; _mculogger . log ( 'Formatting the file system...this will take around ~30s' ) ; try { const response = await _nodeMcuConnector . format ( ) ; // just show complete message _mculogger . log ( 'File System created | ' + response ) ; } catch ( e ) { _mculogger . error ( 'Formatting failed' ) ; _logger . debug ( e ) ; } }
format the file system
format the file system