async function updateFeed(){
    let stat = await ipfs.files.stat("/user");
    console.log('directory: ' + stat.cid.toString());
    return ipfs.name.publish(stat.cid);
}
/**
 * Republish IPNS entry and update pin
 */
Republish IPNS entry and update pin
Republish IPNS entry and update pin
async function updateFeed(){
    let stat = await ipfs.files.stat("/user");
    console.log('directory: ' + stat.cid.toString());
    return ipfs.name.publish(stat.cid);
}
async function updateFeed ( ) { let stat = await ipfs . files . stat ( "/user" ) ; console . log ( 'directory: ' + stat . cid . toString ( ) ) ; return ipfs . name . publish ( stat . cid ) ; }
Republish IPNS entry and update pin
Republish IPNS entry and update pin