Wrapper for the PrusaSlicer CLI plus additional configuration parameters.
npm install nodeslicer
import { render } from "nodeslicer"
const options = {
inputFile: 'path/to/file.stl'
// For more options check out the configSchema.yaml file
}
const gcode = render(options)
console.log(gcode)