src/db.js
function resolveRungFolder() {
    const folder = path.join(os.homedir(), '.rung');
    const createIfNotExists = tryCatch(
        ~(fs.lstatSync(folder).isDirectory()
            ? resolve()
            : reject(new Error('~/.rung is not a directory'))),
        ~createFolder(folder)
    );

    return createIfNotExists();
}
function resolveRungFolder() {
    const folder = path.join(os.homedir(), '.rung');
    const createIfNotExists = tryCatch(
        ~(fs.lstatSync(folder).isDirectory()
            ? resolve()
            : reject(new Error('~/.rung is not a directory'))),
        ~createFolder(folder)
    );

    return createIfNotExists();
}
function resolveRungFolder ( ) { const folder = path . join ( os . homedir ( ) , '.rung' ) ; const createIfNotExists = tryCatch ( ~ ( fs . lstatSync ( folder ) . isDirectory ( ) ? resolve ( ) : reject ( new Error ( '~/.rung is not a directory' ) ) ) , ~ createFolder ( folder ) ) ; return createIfNotExists ( ) ; }
Creates the .rung folder when it doesn't exist

@return {Promise}
Creates the . rung folder when it doesn t exist