Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
article-json-to-contenteditable
Advanced tools
Download node at nodejs.org and install it, if you haven't already.
npm install article-json-to-contenteditable --save
import {render, tree} from 'deku';
import setupArticle from '../lib';
import element from 'magic-virtual-element';
const Article = setupArticle();
const container = document.querySelector('#editor');
const items = [
{
type: 'paragraph',
children: [{
type: 'text',
content: 'Text text text',
href: null,
italic: false,
bold: false,
mark: false,
markClass: null
}]
}, {
type: 'embed',
embedType: 'facebook',
url: 'https://www.facebook.com/david.bjorklund/posts/10153809692501070',
embedAs: 'post',
date: 'Thursday, January 21, 2016',
user: 'David Pop Hipsterson',
text: [{
content: 'Hey!So, for the last few weeks I\'ve worked on http://mic.com/ - the new home for mic.com (on desktop) - please take a look :)',
href: null
}]
}
];
const getCustomKeyDown = (e) => {
// Return method(s) to handle any keydown events you want custom
// handling for, like undo/redo etc.
const zKeyCode = 90;
if (e.metaKey && e.keyCode === zKeyCode) {
return function handleUndoRedo () {
console.log('should undo/redo');
};
}
};
const onUpdate = ({items, selectionBoundingClientRect, activeItem}) => {
console.log('in client.js onUpdate');
console.log('selectionBoundingClientRect:', selectionBoundingClientRect);
console.log('activeItem:', activeItem);
app.mount(<Article items={items} onUpdate={onUpdate} getCustomKeyDown={getCustomKeyDown} />);
};
const app = tree(<Article items={items} onUpdate={onUpdate} getCustomKeyDown={getCustomKeyDown} />);
render(app, container);
npm install
npm test
<mark>
elementsfeross/standard
with semicolons sprinkled on top. Adapted for dekuMIT
Generated by package-json-to-readme
FAQs
## Installation
The npm package article-json-to-contenteditable receives a total of 0 weekly downloads. As such, article-json-to-contenteditable popularity was classified as not popular.
We found that article-json-to-contenteditable demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.