
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.
@omicronenergy/oscd-editor
Advanced tools
This repository hold the XML editing engine inspired by the OpenSCD core and is following the newest agreed OpenSCD Core API
You can either load and use the handleEdit
function through npm or other content delivery networks. This function does manipulate a XMLDocument as per user intent through the edit as its input:
const removeNode: Remove = {node: toBeRemovedNode}
handleEdit(removeNode)
You can also use the exported EditV2Editor
class which keeps track of an undo/redo
history. This class is a wrapper around the handleEdit
function and provides
a more user-friendly API. The EditV2Editor
class can be used as follows:
import { EditV2Editor } from '@omicronenergy/oscd-editor';
const editor = new EditV2Editor();
const removeNode: Remove = {node: toBeRemovedNode}
editor.handleEdit(removeNode);
expect(toBeRemovedNode.parentNode).to.not.exist;
editor.undo(); // undo the latest edit
expect(toBeRemovedNode.parentNode).to.exist;
editor.redo(); // redo the most recently undone edit
expect(toBeRemovedNode.parentNode).to.not.exist;
To scan the project for linting and formatting errors, run
npm run lint
To automatically fix linting and formatting errors, run
npm run format
We use ESLint and Prettier for linting and formatting. Plugins for automatic formatting and linting during editing are available for vim, emacs, VSCode, and all popular IDEs.
To execute a single test run:
npm test
To run the tests in interactive watch mode run:
npm run test:watch
This project is licensed under the Apache License 2.0.
© 2025 Jakob Vogelsang, OMICRON electronics GmbH
FAQs
Function library for basic XML manipulations
The npm package @omicronenergy/oscd-editor receives a total of 14 weekly downloads. As such, @omicronenergy/oscd-editor popularity was classified as not popular.
We found that @omicronenergy/oscd-editor demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
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.