parse-wavefront-obj
Wavefront OBJ parser
Parses a Wavefront OBJ string or buffer. If you're looking for a stream parser check this.
Supports vertex normals and UV coordinates. Doesn't support material libraries (though I'm open to PRs), nor multiple meshes embedded in the same file.
Install
$ npm install parse-wavefront-obj
Usage
var parseOBJ = ;var fs = ; var buf = fs;var mesh = ; console;/*{ positions: [...], cells: [...], // The following attributes are available when defined // in the original file vertexUVs: [...], // array of UV coordinates faceUVs: [...], // array of UV indices vertexNormals: [...], // array of vertex normals faceNormals: [...], // array of normal indices name: 'foo' // mesh name}*/