open-index/open-npm huggingface dataset:
npm package: @mind-elixir/export-html
Description: `@mind-elixir/export-html` is a plugin of [mind-elixir-core](https://github.com/ssshooter/mind-elixir-core). You can use `@mind-elixir/export-html` to export a `.html` file.
Latest version: 3.0.0

# @mind-elixir/export-html

`@mind-elixir/export-html` is a plugin of [mind-elixir-core](https://github.com/ssshooter/mind-elixir-core). You can use `@mind-elixir/export-html` to export a `.html` file.

## Install

```
npm i @mind-elixir/export-html file-saver
```

## How To Use

### Use As A Plugin

```javascript
import MindElixir from 'mind-elixir'
import exportHtml from '@mind-elixir/export-html'

const mind = new MindElixir(options)
mind.install(exportHtml)
mind.init(data)

const blob = await mind.exportHtml() // get blob

mind.exportHtmlFile(fileName) // download file
```

### MindElixir Data To Html

```javascript
import { data2Html } from '@mind-elixir/export-html'
// use this way to avoid creating instance
const blob = await data2Html(JSON.parse(JSON.stringify(data))) // data returned by getData()
```

### Compatibility

```
@mind-elixir/export-html@1.0.0 -> mind-elixir 1.x
@mind-elixir/export-html@2.0.0 -> mind-elixir 2.x
@mind-elixir/export-html@3.0.0 -> mind-elixir 3.x
```
npm package: @mind-elixir/export-image
Description: **WIP🚧**
Latest version: 0.0.3

# @mind-elixir/export-image

**WIP🚧**

## Install

```
npm i @mind-elixir/export-image canvg
```

## Usage


```javascript
import exportImage from '@mind-elixir/export-image'

const mind = new MindElixir(options)
mind.install(exportImage)
const data = MindElixir.new('new topic')
mind.init(example)
```

## Thanks

[canvg](https://github.com/canvg/canvg)