
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
Minimalistic code editor using Prism.js for highlighting
npm install microedit or yarn add microedit or download/clone the repo and pick your version of Microedit.
Minimalistic code editor using Prism.js for highlighting (only supports the default Prism theme for now).
Microedit was designed mainly for editing JSONs. but you can edit any code with it. Supports autoindentation, self-closing brackets and quotes. Self-deleting brackets and quotes. It uses a textarea to edit code and tries to parse value of the textarea on initialization and beautify it via js-beautify library and you can also specify your own beautify function.
I was heavily inspired by CodeFlask the micro-editor, but it lacked some features I needed and i did not feel like the features I would have requested would be inline with the project idea so here is my take on it :-).
let editor = new Microedit(selector, lang, beautifyFunction)
{String} a css selector of the textarea you want to initialize Microedit on
(Optional) {String} Default: 'javascript' - language specification for Prism.
{Function} (Optional) function to beautify code (!ONLY!) for initial value of the textarea. By default uses js-beautify. Should accept one parameter for ugly code and return a string of beautiful code.
gets the content of the textarea. Same as yourTextarea.value
parses json via JSON.parse from the textarea. Accepts one parameter with these possible values:
accepts a callback function as parameter and passes editor instance to it after each update of the field
MIT
FAQs
Minimalistic code editor
The npm package microedit receives a total of 0 weekly downloads. As such, microedit popularity was classified as not popular.
We found that microedit 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

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.