
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Intentionally simple XML parser designed for minimal dependency and speed.
Initalize the parser with options.
import Parser from '@iebh/cacx';
// OR
import {CacxParser} from '@iebh/cacx';
let parser = new Parser()
.append('<a><b><c>Hello World</c></b></a>')
.exec()
.value() //= `{tag: 'a', children: ...}`
Append (or set) string content to be parsed. Returns the CacxParser instance.
Parse the existing buffer into XML. Can be called after each append()
to drain the buffer.
This function should be called at least once prior to value()
.
Returns the CacxParser instance.
Process the current stack into a logical do-the-right-thing data structure.
See the various settings.flatten*
options to configure the behaviour here.
Returns the CacxParser instance.
Returns the parsed XML stack.
This will throw if settings.collect
is falsy.
Returns the nested object stack.
Simple all-in-one string parser helper.
import {parser} from '@iebh/cacx';
parse('<a><b><c>Hello World</c></b></a>') //= `{tag: 'a', children: ...}`
Helper for streaming file inputs into the parser.
import {parseFile} from '@iebh/cacx';
parseFile('./file.xml') //= `{tag: 'a', children: ...}`
Helper to stream a file and run a callback when a named tag closes.
import {parseCollectionFile} from '@iebh/cacx';
parseCollectionFile(
'./file.xml',
{
record(node) {
// Node should represent the state of any `record` element within the XML
},
},
{ // Other options
flatten: true, // Try to flatten the output into a logical JavaScript object
},
);
FAQs
Intentionally simple XML parser designed for minimal dependency and speed
We found that @iebh/cacx demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.