{"bugs":{"url":"https://github.com/ipfs/js-ipfs/issues"},"dist":{"shasum":"6a17dfe78b2475a06f8fe7dffc2379822eb2cf38","tarball":"https://registry.npmjs.org/ipfs-client/-/ipfs-client-0.7.2-rc.5.tgz","fileCount":9,"integrity":"sha512-UVvCpKcRyRdlMSZIX5O8Szc8C3FxLq4w0WdELtD80rI4ym0jKRDEkgY/cX8A30ZjEiXpiNoKEjPi3C+qLf0qLg==","signatures":[{"sig":"MEQCIDLYrrH8DB7tDI2xBXxpVZmjUO9Dvjy96pVFmjCAD5N/AiA2q9lIHUxmD719Kd5NtlhoSdt/re0SixBynZtin3wdtg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":256570},"main":"./cjs/src/index.js","name":"ipfs-client","types":"types/src/index.d.ts","readme":"# ipfs-client\n\n> A client for [ipfs][] daemons\n\nThis module combines the [ipfs-grpc-client][] and [ipfs-http-client][] modules to give you a client that is capable of bidirectional streaming in the browser as well as node.\n\n## Install\n\n```console\n$ npm install ipfs-client\n```\n\n## API\n\nThe client object created by the `createClient` function supports the [IPFS Core API](https://github.com/ipfs/js-ipfs/tree/master/docs/core-api), see the docs for more.\n\n### `create([options])`\n\n### Parameters\n\nNone\n\n### Options\n\nAn optional object which may have the following keys:\n\n| Name | Type | Default | Description |\n| ---- | ---- | ------- | ----------- |\n| grpc | `Multiaddr` or `string` or `URL` | `undefined` | The address of a [ipfs-grpc-server][] to connect to |\n| http | `Multiaddr` or `string` or `URL` | `undefined` | The address of a [ipfs-http-server][] to connect to |\n| agent | [http.Agent](https://nodejs.org/api/http.html#http_class_http_agent) | `undefined` | A http.Agent used to control HTTP client behaviour (node.js only) |\n\n### Returns\n\n| Type | Description |\n| -------- | -------- |\n| `object` | An instance of the client |\n\n### Example\n\n```js\nimport { create } from 'ipfs-client'\n\nconst client = create({\n  grpc: '/ipv4/127.0.0.1/tcp/5003/ws',\n  http: '/ipv4/127.0.0.1/tcp/5002/http'\n})\n\nconst id = await client.id()\n```\n\n[ipfs]: https://www.npmjs.com/package/ipfs\n[ipfs-grpc-client]: https://www.npmjs.com/package/ipfs-grpc-client\n[ipfs-http-client]: https://www.npmjs.com/package/ipfs-http-client\n[ipfs-grpc-server]: https://www.npmjs.com/package/ipfs-grpc-server\n[ipfs-http-server]: https://www.npmjs.com/package/ipfs-http-server\n","browser":{".":"./cjs/src/index.js"},"exports":{".":{"import":"./esm/src/index.js","browser":"./esm/src/index.js","require":"./cjs/src/index.js"}},"gitHead":"15184bf1838956a44c079660a4d82c24166407db","license":"(Apache-2.0 OR MIT)","scripts":{"lint":"aegir ts -p check && aegir lint","build":"aegir build","clean":"rimraf ./dist","dep-check":"aegir dep-check -i aegir -i rimraf"},"_npmUser":{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},"homepage":"https://github.com/ipfs/js-ipfs/tree/master/packages/ipfs-client#readme","keywords":["ipfs"],"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details","repository":{"url":"git+https://github.com/ipfs/js-ipfs.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.13.0+x64 (linux)","description":"A client library to talk to local IPFS daemons","directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_nodeVersion":"16.13.0","dependencies":{"merge-options":"^3.0.4","ipfs-grpc-client":"^0.7.2-rc.5+15184bf1","ipfs-http-client":"^53.0.2-rc.5+15184bf1"},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"leadMaintainer":"Alex Potsides <alex@achingbrain.net>","readmeFilename":"README.md","devDependencies":{"aegir":"^35.1.1","rimraf":"^3.0.2"},"_npmOperationalInternal":{"tmp":"tmp/ipfs-client_0.7.2-rc.5_1636010783000_0.03832298409661061","host":"s3://npm-registry-packages"},"_id":"ipfs-client@0.7.2-rc.5","version":"0.7.2-rc.5"}