How to use the @jscad/io-utils.makeBlob function in @jscad/io-utils

To help you get started, we’ve selected a few @jscad/io-utils 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 jscad / jscad-desktop / src / core / io / convertToBlob.js View on Github external
const { makeBlob } = require('@jscad/io-utils')

const Blob = makeBlob()

function convertToBlob (input) {
  const {data, mimeType} = input
  const blob = new Blob(data, { type: mimeType })
  return blob
}

module.exports = {
  convertToBlob
}

@jscad/io-utils

Utilities for JSCAD IO Packages

MIT
Latest version published 2 months ago

Package Health Score

87 / 100
Full package analysis