1.8.0 • Published 1 year ago
@unified-latex/unified-latex-util-match v1.8.0
unified-latex-util-match
What is this?
Functions to match different Ast.Node types in a unified-latex Abstract Syntax Tree (AST).
When should I use this?
If you need a type-guard to ensure a node is of a certain type; for example, during a call to unified-latex-until-visit.
Install
npm install @unified-latex/unified-latex-util-matchThis package contains both esm and commonjs exports. To explicitly access the esm export,
import the .js file. To explicitly access the commonjs export, import the .cjs file.
Constants
| Name | Type | Description |
|---|---|---|
match | { macro(node: any, macroName?: string): node is Ast.Macro; anyMacro(node: any): node is Ast.Macro; environment(node: any, envName?: string): node is Ast.Environment; ... 12 more ...; createEnvironmentMatcher: (macros: string[] \| Record<string, unknown>) => Ast.TypeGuard<Ast.Environment>; } | Functions to match different types of nodes. |
1.8.0
1 year ago
1.7.1
2 years ago
1.7.0
2 years ago
1.6.1
2 years ago
1.6.0
2 years ago
1.4.2
2 years ago
1.4.0
2 years ago
1.3.1
3 years ago
1.3.0
3 years ago
1.2.3
3 years ago
1.2.2
3 years ago
1.2.0
3 years ago
1.1.0
3 years ago
1.2.1
3 years ago
1.0.12
3 years ago
1.0.11
3 years ago
1.0.10
3 years ago
1.0.8
3 years ago
1.0.7
3 years ago
1.0.6
3 years ago
1.0.5
3 years ago
1.0.0
3 years ago