1.8.0 • Published 4 months ago
@unified-latex/unified-latex-util-packages v1.8.0
unified-latex-util-packages
What is this?
Functions for reporting on imported packages in a unified-latex
Abstract Syntax Tree (AST).
When should I use this?
If you are building a linter or some other system that needs to know which packages have been included
via \usepackage{...}
or \RequirePackage{...}
.
Install
npm install @unified-latex/unified-latex-util-packages
This 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.
Functions
listPackages(tree)
List all packages referenced via \includepackage{...}
or \RequirePackage{...}
function listPackages(tree: Ast.Ast): Ast.String[];
Parameters
Param | Type |
---|---|
tree | Ast.Ast |
1.8.0
4 months ago
1.7.1
9 months ago
1.7.0
10 months ago
1.6.1
10 months ago
1.6.0
11 months ago
1.4.2
1 year ago
1.4.0
2 years ago
1.3.2
2 years ago
1.3.1
2 years ago
1.3.0
2 years ago
1.2.2
2 years ago
1.2.0
2 years ago
1.1.0
2 years ago
1.2.1
2 years ago
1.0.11
3 years ago
1.0.10
3 years ago
1.0.12
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