I'd like to generate a CID (Content identifier) for a file in javascript without having access to an IPFS node or the internet. I've tried using [js-multihashing-async](https://github.com/multiformats/js-multihashing-async) to first hash the file and [js-cid](https://github.com/multiformats/js-cid) to generate a CID from the hash but I get a different CID than if I just add the file to [ipfs-desktop](https://github.com/ipfs-shipyard/ipfs-desktop). It looks like the problem is an IPFS node chunks data and the CID is for the DAG that links the files' chunks. I've tried this [library](https://www.npmjs.com/package/ipfs-only-hash) but it doesn't produce the same CID as ipfs-desktop does for the same file. [This](https://stackoverflow.com/questions/40998621/how-to-create-an-ipfs-compatible-multihash) question is essentially the same as mine but none of the answers give a CID that matches the ipfs-desktop-generated CID.