
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
editron-index-editor
Advanced tools
Adds an editable navigation for a given datapoint (json-pointer).
npm i editron-index-editor --save
Use bundled versions of this editor
Add the editor after the core-modules and it will register automatically (paths depend on your build-setup)
<link rel="stylesheet" href="../node_modules/editron-index-editor/dist/editron-index-editor.css">
<!-- plugin editor -->
<script type="text/javascript" src="../node_modules/editron-core/dist/editron-modules.js"></script>
<script type="text/javascript" src="../node_modules/editron-core/dist/editron-core.js"></script>
<script type="text/javascript" src="../node_modules/editron-index-editor/dist/editron-index-editor.js"></script>
And create the index-editor
const controller = new editronCore.Controller(mySchema, myData);
// create a main view for your data
const mainEditor = controller.createEditor("#/subView", document.querySelector("#editor"));
// create a new editor using the index-editor (enabled by option)
const index = controller.createEditor("#", document.querySelector("#editor-navigation"), {
"editron:ui": { "editor:index": true }
});
// the index-editor will notify the location-service for any changes
const LocationServive = require("editron-core/services/LocationService");
LocationService.on(LocationService.PAGE_EVENT, function (pointer) {
// change entry pointer to `pointer` (item within index has been clicked)
// here you may destroy the main view editor and change the entry-point according to the passed pointer:
mainEditor.destroy();
mainEditor = controller.createEditor(pointer, document.querySelector("#editor"));
});
bundle the editor into your editron-application
To use this editor within a webpack build, require the editor and add it to the editors list
const editronIndexEditor = require("editron-index-editor");
const editors = [
editronIndexEditor
...otherEditors
];
const controller = new Editron(schema, data, { editors });
// and follow the example above
Optionally import the custom script-editor styles via sass
@import "editron-index-editor/editron-index-editor.scss";
or simply add the bundled css-file (path is depending on your build-setup)
<link rel="stylesheet" href="../node_modules/editron-index-editor/dist/editron-index-editor.css">
FAQs
Editron - overview navigation editor
The npm package editron-index-editor receives a total of 15 weekly downloads. As such, editron-index-editor popularity was classified as not popular.
We found that editron-index-editor 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.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.