
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.
mind-viewer
Advanced tools
XMind Viewer, is a lightweight library to parse a .xmind
file and render it in SVG
.
It's very useful for showing a mind map on any web pages. Like a blog post, a book introduction, a page navigation, etc. All versions of XMind files are compatiable, which means you can generate an XMind file with XMind SDK
and then render it with XMind Viewer
. Cool?
XMind Viewer is an official project, made by XMind team, and written in TypeScript.
$ npm i --save xmind-viewer
const { loadFromXMind, SnowbrushRenderer } = require('xmind-viewer')
import JSZip from 'jszip'
import { loadFromXMind, SnowbrushRenderer } from 'xmind-viewer'
new JSZip().loadAsync(zipFile).then(zip => {
loadFromXMind(zip).then(data => {
const renderer = new SnowbrushRenderer(data.sheets)
return renderer.render({ sheetIndex: 0 })
}).then(svg => {
// document.body.appendChild(svg)
})
})
loadFromXMind()
can be used to convert .xmind
files into sheets
that can be read by Snowbrush Render
Snowbrush Renderer accepts an array of sheets as a constructor argument, and SVG will be generated based on the content of the sheet after using render()
.
P.S. Snowbrush is an internal code name for render engine.
SVG will be generated based on the content of the sheet after using render()
.
You can use options to determine which Sheet you want to display.
sheetIndex
: Select which sheet you want to render.
Get the generated SVG, it must be called after render()
.
Move the center point of the mindmap to the location (x, y).
In addition to these exposed API, the rest of the code can change at any time.
See the MIT License.
FAQs
# XMind Viewer
The npm package mind-viewer receives a total of 0 weekly downloads. As such, mind-viewer popularity was classified as not popular.
We found that mind-viewer 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
/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.