
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@remirror/extension-bold
Advanced tools
Make your text bold. Make it courageous.
yarn add @remirror/extension-bold # yarn
pnpm add @remirror/extension-bold # pnpm
npm install @remirror/extension-bold # npm
This is included by default when you install the recommended remirror
package. All exports are also available via the entry-point, remirror/extensions
.
When added to your editor it will provide the toggleBold
command which makes the text under the cursor / or at the provided position range bold.
import { ExtensionPriority, RemirrorManager } from 'remirror';
import { BoldExtension, CorePreset } from 'remirror/extensions';
// Create the bold extension
const boldExtension = new BoldExtension({ weight: '500' });
const corePreset = new CorePreset();
// Create the Editor Manager with the bold extension passed through.
const manager = RemirrorManager.create([boldExtension, corePreset]);
// Pass the dom element to the editor. If you are using `@remirror/react` this is done for you.
const element = document.createElement('div');
document.body.append(element);
// Add the view to the editor manager.
manager.addView(element);
// Access the commands and toggleBoldness
manager.commands.toggleBold();
// Toggle at the provided range
manager.commands.toggleBold({ from: 1, to: 7 });
FAQs
Make your text bold. Make it courageous.
The npm package @remirror/extension-bold receives a total of 41,037 weekly downloads. As such, @remirror/extension-bold popularity was classified as popular.
We found that @remirror/extension-bold demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.