Options

Defined in: node_modules/vfile/index.d.ts:92

Configuration.

Indexable

[key: string]: unknown

Arbitrary fields that will be shallow copied over to the new file.

Properties

basename?

optional basename: null | string

Defined in: node_modules/vfile/index.d.ts:100

Set basename (name).


cwd?

optional cwd: null | string

Defined in: node_modules/vfile/index.d.ts:104

Set cwd (working directory).


data?

optional data: null | Data

Defined in: node_modules/vfile/index.d.ts:108

Set data (associated info).


dirname?

optional dirname: null | string

Defined in: node_modules/vfile/index.d.ts:112

Set dirname (path w/o basename).


extname?

optional extname: null | string

Defined in: node_modules/vfile/index.d.ts:116

Set extname (extension with dot).


history?

optional history: null | string[]

Defined in: node_modules/vfile/index.d.ts:120

Set history (paths the file moved between).


path?

optional path: null | string | URL

Defined in: node_modules/vfile/index.d.ts:124

Set path (current path).


stem?

optional stem: null | string

Defined in: node_modules/vfile/index.d.ts:128

Set stem (name without extension).


value?

optional value: null | Value

Defined in: node_modules/vfile/index.d.ts:132

Set value (the contents of the file).