
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
Parses stdf files into records or parts.
It is written in pure javascript.
It is currently in its alpha state, which means it may have bugs, may be unstable.
But at least you now have a package to process stdf file.
to Install
npm i stdfjs --save
to Use
const stdf = require('stdfjs')
const got = require('got')
const bz2 = require('unbzip2-stream')
const fs = require('fs')
// get the demo stdf file from internet
let stdfbz2 = got.stream(
'https://sourceforge.net/p/freestdf/libstdf/ci/master/tree/tests/stdf.bz2?format=raw'
)
// the demo file is in bzip2 format, so pipe it to decompress
let rs = stdfbz2.pipe(bz2())
// feed the raw stdf stream to stdf parser
let parser = stdf
.parser()
.on('rec', r => {
console.log('%j', r)
})
.on('part', p => {
console.log('%j', p)
})
rs.on('data', ck => {
parser.push(ck)
}).on('end', () => {
parser.push()
})
Because the new implementation uses DataView instead of node Buffer, the performance is about 3 times slower than version 1.0.x (commit ID 6083137cdf6a4f5f3c876e634e6c797ed44c810a).
But this change enables the availability of this package in browser.
FAQs
Parses stdf files into records or parts.
We found that stdfjs 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
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.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.