This repository has been archived on 2023-03-25. You can view files and clone it, but cannot push or open issues or pull requests.
mightyscape-1.1-deprecated/extensions/fablabchemnitz/papercraft/openjscad/node_modules/@jscad/io-utils/README.md

1.2 KiB

@jscad/io-utils

input/output handling utilities

npm version Build Status

Overview

This contains following utilities:

  • makeBlob : converts arrays of raw data output by the various serializers into a Blob that can also be converted to Node.js buffer

Table of Contents

Installation

npm install @jscad/io-utils

Usage

const {makeBlob} = require('@jscad/io-utils')
const stlSerializer = require('@jscad/stl-serializer')

const rawData = stlSerializer(CSGObject)

const blob = new makeBlob(rawData)
//get a Node.js buffer
const buffer = blob.asBuffer()

Contribute

For questions about the API, please contact the User Group

PRs accepted.

Small Note: If editing this README, please conform to the standard-readme specification.

License

The MIT License (MIT) (unless specified otherwise)