Skip to content

Markdown2Pdf.Options.ModuleOptions

Anton Lange edited this page Apr 23, 2024 · 7 revisions

Class ModuleOptions

Namespace: Markdown2Pdf.Options
Assembly: Markdown2Pdf.dll

Options that decide from where to load additional modules.

public class ModuleOptions

Inheritance

objectModuleOptions

Inherited Members

object.Equals(object), object.Equals(object, object), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object, object), object.ToString()

Constructors

ModuleOptions(ModuleLocation)

Creates a new instance of ModuleOptions.

protected ModuleOptions(ModuleLocation moduleLocation)

Parameters

moduleLocation ModuleLocation

Location from where to load the modules.

Properties

Global

Loads the node_modules from the systems global npm node_module directory (needs npm installed and in path).

public static ModuleOptions Global { get; }

Property Value

ModuleOptions

ModuleLocation

Provides information from where to load modules.

public ModuleLocation ModuleLocation { get; }

Property Value

ModuleLocation

ModuleLocation

public ModuleLocation ModuleLocation { get; }

Property Value

ModuleLocation

ModulePath

public string? ModulePath { get; }

Property Value

string?

None

Don't load any additional modules.

public static ModuleOptions None { get; }

Property Value

ModuleOptions

Remote

Loads the node_modules over remote http-requests.

public static ModuleOptions Remote { get; }

Property Value

ModuleOptions

Remarks

This option requires an internet connection.

Remote

Loads the node_modules over remote http-requests.

public static ModuleOptions Remote { get; }

Property Value

ModuleOptions

Remarks

This option requires an internet connection.

Methods

FromLocalPath(string)

Loads the node_modules from the given (local) npm directory.

public static ModuleOptions FromLocalPath(string modulePath)

Parameters

modulePath string

The path to the node_module directory.

Returns

ModuleOptions

FromLocalPath(string)

Loads the node_modules from the given (local) path.

public static ModuleOptions FromLocalPath(string modulePath)

Parameters

modulePath string

The path to the node_module directory.

Returns

ModuleOptions

Clone this wiki locally