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
2020-09-10 14:36:01 +02:00
..
BinaryReader.js Added option for labels/no labels (Papercraft Unfold) 2020-09-10 14:36:01 +02:00
CHANGELOG.md Added option for labels/no labels (Papercraft Unfold) 2020-09-10 14:36:01 +02:00
ensureManifoldness.js Added option for labels/no labels (Papercraft Unfold) 2020-09-10 14:36:01 +02:00
index.js Added option for labels/no labels (Papercraft Unfold) 2020-09-10 14:36:01 +02:00
makeBlob.js Added option for labels/no labels (Papercraft Unfold) 2020-09-10 14:36:01 +02:00
package.json Added option for labels/no labels (Papercraft Unfold) 2020-09-10 14:36:01 +02:00
README.md Added option for labels/no labels (Papercraft Unfold) 2020-09-10 14:36:01 +02:00
test.js Added option for labels/no labels (Papercraft Unfold) 2020-09-10 14:36:01 +02:00

@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)