mkdir projectdir cd projectdir npm install --save ipfs-api
const ipfsAPI = require('ipfs-api'); const ipfs = ipfsAPI({host: 'localhost', port: '5001', protocol: 'http'});