
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
obj-file-parser
Advanced tools
Open source, re-usable Wavefront 3D object file (.OBJ) parser written in javascript and distributed freely as an NPM package.
npm install --save obj-file-parser
const OBJFile = require('obj-file-parser');
const fileContents =
'v 0 0 0 \n' +
'v 0 1 0 \n' +
'v 1 0 0 \n' +
'f 1 2 3';
const objFile = new OBJFile(fileContents);
const output = objFile.parse(); // see description below
The extracted model data and list of material library references are returned in the following format:
{
models: [
{
name: 'unit_cube',
vertices: [
{ x: 1.0, 2.0, 3.0 },
...
],
textureCoords: [
{ u: 1.0, v: 2.0, w: 3.0 },
...
],
vertexNormals: [
{ x: 1.0, y: 2.0, z: 3.0 },
...
],
faces: [
{
material: 'brick',
group: 'group1',
smoothingGroup: 0,
vertices: [
{ vertexIndex: 1, textureCoordsIndex: 1, vertexNormalIndex: 1 },
...
]
}
]
},
{
...
}
],
materialLibraries: [
'mat_lib1.mtl',
...
]
}
obj-file-parser is being actively maintained and developed. Comments, feedback and bug reports always welcome.
Help me make this obj-file-parser and other tools better!
FAQs
Wavefront 3D Object File (.OBJ) Parser
The npm package obj-file-parser receives a total of 299 weekly downloads. As such, obj-file-parser popularity was classified as not popular.
We found that obj-file-parser demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.