Properties
build
build
: (node
: Node, force
: boolean) => Promise<Node> = ...
Type declaration
-
- (node: Node, force: boolean): Promise<Node>
-
Parameters
Returns Promise<Node>
call
call
: (name
: string, args
: Record<string, Node>) => Promise<Node> = ...
Type declaration
-
- (name: string, args: Record<string, Node>): Promise<Node>
-
Parameters
-
name: string
-
args: Record<string, Node>
Returns Promise<Node>
clean
clean
: (node
: Node) => Promise<Node> = ...
Type declaration
-
-
Parameters
Returns Promise<Node>
cli
cli: () => void = ...
compile
compile
: (node
: Node, force
: boolean) => Promise<Node> = ...
Type declaration
-
- (node: Node, force: boolean): Promise<Node>
-
Parameters
Returns Promise<Node>
convert
convert: typeof convert = ...
decode
decode: typeof decode = ...
delete
delete: (name: string) => Promise<undefined> = ...
Type declaration
-
- (name: string): Promise<undefined>
-
Parameters
Returns Promise<undefined>
dispatch
dispatch
: (method
: string, params
: Record<string, Node | undefined>) => Promise<Node | undefined> = ...
Type declaration
-
- (method: string, params: Record<string, Node | undefined>): Promise<Node | undefined>
-
Parameters
-
method: string
-
params: Record<string, Node | undefined>
Returns Promise<Node | undefined>
downcast
downcast
: (node
: Node) => Promise<Node> = ...
Type declaration
-
-
Parameters
Returns Promise<Node>
encode
encode: typeof encode = ...
enrich
enrich
: (node
: Node, force
?: boolean) => Promise<Node> = ...
Type declaration
-
- (node: Node, force?: boolean): Promise<Node>
-
Parameters
Returns Promise<Node>
execute
execute
: (node
: Node, force
: boolean) => Promise<Node> = ...
Type declaration
-
- (node: Node, force: boolean): Promise<Node>
-
Parameters
Returns Promise<Node>
export
export
: (node
: Node, output
: string, format
?: string, downcast
: boolean, validate
?: boolean, theme
??: string) => Promise<string> = ...
Type declaration
-
- (node: Node, output: string, format?: string, downcast: boolean, validate?: boolean, theme??: string): Promise<string>
-
Parameters
-
-
output: string
-
Optional format: string
-
downcast: boolean
-
validate: boolean = false
-
Optional theme: string = false
Returns Promise<string>
funcs
funcs: () => Promise<Record<string, string>> = ...
Type declaration
-
- (): Promise<Record<string, string>>
-
Returns Promise<Record<string, string>>
get
get: typeof get = ...
import
import: typeof import_ = ...
pipe
Type declaration
-
-
Parameters
Returns Promise<Node>
pull
pull: typeof pull = ...
read
read: typeof read = ...
select
select: typeof select = ...
serve
serve: () => Promise<void> = ...
set
set: typeof set = ...
upcast
upcast
: (node
: Node) => Promise<Node> = ...
Type declaration
-
-
Parameters
Returns Promise<Node>
validate
validate: typeof validate = ...
vars
vars: () => Promise<Record<string, string>> = ...
Type declaration
-
- (): Promise<Record<string, string>>
-
Returns Promise<Record<string, string>>
write
write: typeof write = ...
Build a document
This implementation walks the document and collects NPM package names from the
imports
property of JavascriptCodeChunk
nodes. It then callsnpm install
with the names of the packages missing frompackage.json
. If there is nopackage.json
file then will create one.