How to use the get-uri function in get-uri

To help you get started, we’ve selected a few get-uri examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github sanity-io / sanity / packages / @sanity / core / src / util / getStreamForUri.js View on Github external
new Promise((resolve, reject) => {
    getUri(uri, (err, stream) => {
      if (err) {
        reject(err)
      } else {
        resolve(stream)
      }
    })
  })

get-uri

Returns a `stream.Readable` from a URI string

MIT
Latest version published 2 months ago

Package Health Score

85 / 100
Full package analysis

Popular get-uri functions