npm.io
0.2.11 • Published 6 years ago

node-slic3r

Licence
MIT
Version
0.2.11
Deps
5
Size
798 kB
Vulns
0
Weekly
0
Stars
3

Node.js Slic3r

Node.js wrapper for the Slic3r-cli plus additional configuration parameters.

Installation

$ npm install node-slic3r

Usage

var nodeSlicer = require('node-slic3r');

var options = {
        inputFile: 'path/to/file'
        // For more options check out the configSchema.yaml file
    };


nodeSlicer.render(options, function (error, bufferData) {
    if (error)
        console.error(error.message)
    else
        console.log(bufferData.toString('utf8'))
})