tree: 3b2f91a7f0e6a3dcae3b9821e59f0c284c380cd5 [path history] [tgz]
  1. tests/
  2. index.d.ts
  3. index.js
  4. LICENSE
  5. package.json
  6. README.md
lib/fetch/README.md

@protobufjs/fetch

npm

Fetches the contents of a file accross node and browsers.

API

  • fetch(path: string, [options: { binary: boolean } ], [callback: function(error: ?Error, [contents: string])]): Promise<string|Uint8Array>|undefined Fetches the contents of a file.

License: BSD 3-Clause License