Skip to content

Documentation / joplin-plugin-api / ImportModule

Interface: ImportModule

Properties

description

description: string

The description that will appear in the UI, for example in the menu item.

Defined in

types.ts:140


fileExtensions?

optional fileExtensions: string[]

Tells the file extensions of the exported files.

Defined in

types.ts:157


format

format: string

The format to be exported, eg "enex", "jex", "json", etc.

Defined in

types.ts:135


isNoteArchive

isNoteArchive: boolean

Only applies to single file exporters or importers It tells whether the format can package multiple notes into one file. For example JEX or ENEX can, but HTML cannot.

Defined in

types.ts:147


outputFormat?

optional outputFormat: ImportModuleOutputFormat

Tells the type of notes that will be generated, either HTML or Markdown (default).

Defined in

types.ts:162


sources

sources: FileSystemItem[]

The type of sources that are supported by the module. Tells whether the module can import files or directories or both.

Defined in

types.ts:152

Methods

onExec()

onExec(context): Promise<void>

Called when the import process starts. There is only one event handler within which you should import the complete data.

Parameters

context: ImportContext

Returns

Promise<void>

Defined in

types.ts:167

Released under the MIT License.