node package manager

node-stl

parse stl files with Node.js and get volume, weight, and bounding box

node-stl

Parse STL files with Node.js and get volume, weight, and the bounding box.

var stl = NodeStl(__dirname + '/myCool.stl');
console.log(stl.volume + 'cm^3');     // 21cm^3 
console.log(stl.weight + 'gm');       //  1gm 
console.log(stl.boundingBox,'(mm)');  // [60,45,50] (mm) 

node-stl recognizes by itself whether it is dealing with an ASCII STL or a binary STL file

use npm:

$ npm install node-stl

MIT

0.1.0