
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.
@sc-360-v2/macros-editor
Advanced tools
`@sc-360-v2/macros-editor` is an advanced library designed for creating macros in text editors and code editors. It integrates with popular tools like Froala Editor and Monaco Editor, enabling you to build feature-rich and interactive text editing experie
@sc-360-v2/macros-editor
is an advanced library designed for creating macros in text editors and code editors. It integrates with popular tools like Froala Editor and Monaco Editor, enabling you to build feature-rich and interactive text editing experiences. This package simplifies the process of embedding macro functionality and code-editing capabilities while maintaining a small footprint.
Follow these steps to install and configure the library in your project:
Run the following command to add the library to your project:
npm install @sc-360-v2/macros-editor
To use Code Editor with your project, you must install the required dependencies. Specifically monaco-editor (the Monaco Editor core) need to be installed separately:
npm install monaco-editor
Hereβs a basic example of how to use the @sc-360-v2/macros-editor
library in your project.
import React from "react";
import TextEditor from "@sc-360-v2/macros-editor/text-editor";
import "@sc-360-v2/macros-editor/text-editor.scss"; //add styles dependencies
const App = () => {
const handleContentChange = (content: string) => {
console.log("Updated content:", content);
};
const handleContentBlur = (content: string) => {
console.log("Updated content:", content);
};
return (
<div>
<h1>Text Editor with Macros</h1>
<TextEditor
content="<h1>Text Editor with Macros</h1>"
onContentChange={handleContentChange}
oncontentBlur={handleContentBlur}
/>
</div>
);
};
export default App;
import React from "react";
import CodeEditor from "@sc-360-v2/macros-editor/code-editor";
const App = () => {
const handleCodeChange = (code: string) => {
console.log("Updated code:", code);
};
return (
<div>
<h1>Code Editor with Macros</h1>
<CodeEditor onContentChange={handleCodeChange} />
</div>
);
};
export default App;
Your project will look like this after installation:
my-project/
βββ src/
β βββ components/
β βββ App.tsx
βββ node_modules/
βββ package.json
βββ tsconfig.json
βββ README.md
The build process is optimized to reduce the final bundle size. Gzipped assets are created, and unnecessary files are excluded.
Run the build command:
npm run build
The output will be available in the dist/
folder. You can publish this to npm or use it directly in your project.
This library is licensed under the MIT License.
FAQs
`@sc-360-v2/macros-editor` is an advanced library designed for creating macros in text editors and code editors. It integrates with popular tools like Froala Editor and Monaco Editor, enabling you to build feature-rich and interactive text editing experie
The npm package @sc-360-v2/macros-editor receives a total of 310 weekly downloads. As such, @sc-360-v2/macros-editor popularity was classified as not popular.
We found that @sc-360-v2/macros-editor demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.Β It has 7 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.