async function resolveAndPin(ipns){
    let dir = await first(ipfs.name.resolve(ipns));
    //await ipfs.pin.add(ipns, { recursive: false }); //recursive:true would pin all items of that user. Future: ipfs name follow?
    return dir;
}
/**
 * Resolves an IPNS entry and pins it locally
 * @param ipns
 * @returns {Promise<void|string>}
 */
Resolves an IPNS entry and pins it locally
@param ipns
@returns {Promise}
Resolves an IPNS entry and pins it locally @param ipns @returns { Promise }
async function resolveAndPin(ipns){
    let dir = await first(ipfs.name.resolve(ipns));
    return dir;
}
async function resolveAndPin ( ipns ) { let dir = await first ( ipfs . name . resolve ( ipns ) ) ; return dir ; }
Resolves an IPNS entry and pins it locally
 @param ipns
 @returns {Promise<void|string>}
Resolves an IPNS entry and pins it locally @param ipns @returns { Promise<void|string > }
//await ipfs.pin.add(ipns, { recursive: false }); //recursive:true would pin all items of that user. Future: ipfs name follow?