🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@nsea/xmind-handler

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nsea/xmind-handler

A powerful Node.js library for processing XMind files, allowing you to filter, convert, and output XMind content in various formats.

latest
Source
npmnpm
Version
0.0.5
Version published
Maintainers
1
Created
Source

@nsea/xmind-handler

A powerful Node.js library for processing XMind files, allowing you to filter, convert, and output XMind content in various formats.

Features

  • Filter XMind topics based on markers
  • Convert XMind content to JSON, Markdown, or filtered XMind files
  • Command-line interface for easy usage
  • Supports multiple output formats

Installation

Install the package using npm:

npm install @nsea/xmind-handler

Or using yarn:

yarn add @nsea/xmind-handler

Usage

Command Line Interface

You can use the CLI to process XMind files:

xmind -i input.xmind -o output -t json,md,xmind -m priority-1,important

Options:

  • -i, --input <filePath>: Input XMind file path (required)
  • -o, --output-dir <dir>: Output directory (default: current directory)
  • -t, --output-types <types>: Output types (comma-separated, default: xmind)
  • -m, --filter-markers <markers>: Filter markers (comma-separated, default: priority-1)

Programmatic Usage

You can also use the library in your Node.js projects:

import processXMind from '@nsea/xmind-handler';

const options = {
  inputFile: 'path/to/input.xmind',
  outputTypes: ['json', 'md', 'xmind'],
  outputDir: 'path/to/output',
  filterMarkers: ['priority-1', 'important']
};

processXMind(options)
  .then(() => console.log('XMind processing complete'))
  .catch(error => console.error('Error processing XMind:', error));

API

processXMind(options: XMindOptions): Promise<void>

Process an XMind file based on the provided options.

XMindOptions

  • inputFile: string - The path to the input XMind file
  • outputTypes?: ('json' | 'md' | 'xmind')[] - The types of output to generate (default: ['xmind'])
  • outputDir?: string - The directory to write output files to (default: '.')
  • filterMarkers: string[] - An array of marker IDs to filter topics by

License

This project is licensed under the MIT License.

Keywords

lib

FAQs

Package last updated on 03 Sep 2024

Did you know?

Socket

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.

Install

Related posts