Security News
The Unpaid Backbone of Open Source: Solo Maintainers Face Increasing Security Demands
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
stl-parser
Advanced tools
STL-parser is a transform stream which convert STL-files to newline separated JSON events for each face.
STL-parser is a transform stream which convert STL-files to newline separated JSON events for each face. Check out jsonlines.org for a detailed specification of the jsonl format.
As a module for your project:
npm install stl-parser
As a command line program:
npm install -g stl-parser
cat test.stl | stl-parser
This emits a jsonl file-stream with header and facet events.
The cli flags --ascii
and --binary
can be used to enforce
parsing with the specified file-encoding.
var stlParser = require('stl-parser'),
stlStream = fs.createReadStream('/path/to/stl/file.stl'),
outputFile = fs.createWriteStream('/path/to/export/file.jsonl')
stlStream
.pipe(stlParser())
.pipe(outputFile)
There is also the possibility to use it buffered and get one javascript object for the whole STL. This should, however, only be used for small files.
var stlParser = require('stl-parser'),
stl = fs.readFileSync('/path/to/stl/file.stl')
stlParser(stl).on('data', (data) =>
fs.writeFileSync('/path/to/export/file.json', data)
)
FAQs
STL-parser is a transform stream which convert STL-files to newline separated JSON events for each face.
The npm package stl-parser receives a total of 7 weekly downloads. As such, stl-parser popularity was classified as not popular.
We found that stl-parser demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.
Security News
A developer is accusing Tencent of violating the GPL by modifying a Python utility and changing its license to BSD, highlighting the importance of copyleft compliance.