Blazing fast IPFS JSON pinning with replication on multiple pinning services.

Blazing fast IPFS JSON pinning with replication on multiple pinning services.
#### Node.js
To install Pineapple.js on Node.js, open your terminal and run:
```
npm install @snapshot-labs/pineapple
#### Browser
You can create an index.html file and include Pineapple.js with:
`html`
js
import { pin } from '@snapshot-labs/pineapple';// Pin JSON
const obj = { foo: 'bar' };
const receipt = await pin(obj);
console.log(receipt);
`On success, it returns a receipt object:
`js
{
provider: 'infura',
cid: 'xxxxx'
}
`On error, it will return an error object like this:
`js
{
error: {
code: 400,
message: 'File too big',
data: {}
}
}
`$3
- On NodeJS, you can set the env variable
FETCH_KEEP_ALIVE to true` to enable keep-alive connections.