
Security News
Risky Biz Podcast: Making Reachability Analysis Work in Real-World Codebases
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
jast-util-to-texast
Advanced tools
Utility to convert a [jast][jast] tree to a [texast][texast] tree.
Note This repository is automatically generated from the main parser monorepo. Please submit any issues or pull requests there.
Utility to convert a jast tree to a texast tree.
This package is ESM only. In Node.js (version 12.20+, 14.14+, 16.0+, 18.0+), install as
pnpm add jast-util-to-texast
# or with yarn
# yarn add jast-util-to-texast
# or with npm
# npm install jast-util-to-texast
all()
Convert all nodes in tree using j
all(j: J, parent: Node): TexastContent[];
Name | Type | Description |
---|---|---|
j | J | jast constructor function |
parent | Node |
Defined in: src/lib/all.ts:10
one()
one(j: J, node: Node, parent: Parent): TexastContent | TexastContent[] | void;
Name | Type |
---|---|
j | J |
node | Node |
parent | Parent |
TexastContent
| TexastContent
[] | void
Defined in: src/lib/one.ts:7
toTexast()
toTexast(tree: TexastContent | TexastRoot, options: Options = ...): TexastContent | TexastRoot;
Name | Type |
---|---|
tree | TexastContent |
options | Options |
Defined in: src/lib/jast-util-to-texast.ts:24
defaultHandlers
Const
object
{
abbrev: () => void;
abbrevJournaltitle: () => void;
abstract: () => void;
accessDate: () => void;
ack: () => void;
addrLine: () => void;
address: () => void;
aff: () => void;
affAlternatives: () => void;
altText: () => void;
altTitle: () => void;
alternatives: () => void;
annotation: () => void;
anonymous: () => void;
answer: () => void;
answerSet: () => void;
app: () => void;
appGroup: () => void;
array: () => void;
article: (j: J, node: Root) => TexastContent;
articleCategories: () => void;
articleId: () => void;
articleMeta: () => void;
articleTitle: (j: J, node: Parents, parent: Parent) => TexastContent;
articleVersion: () => void;
articleVersionalternatives: () => void;
attrib: () => void;
authorComment: () => void;
authorNotes: () => void;
awardDesc: () => void;
awardGroup: () => void;
awardId: () => void;
awardName: () => void;
back: (j: J, parent: Node) => TexastContent[];
bio: () => void;
blockAlternatives: () => void;
body: (j: J, node: Root) => TexastContent;
bold: (j: J, node: Parents, parent: Parent) => TexastContent;
boxedText: () => void;
break: () => void;
caption: (j: J, node: Parents, parent: Parent) => TexastContent;
chapterTitle: () => void;
chemStruct: () => void;
chemStructwrap: () => void;
citationAlternatives: () => void;
city: () => void;
code: () => void;
col: () => void;
colgroup: () => void;
collab: () => void;
collabAlternatives: () => void;
command: (j: J, node: Parents, parent: Parent) => TexastContent;
comment: () => void;
compoundKwd: () => void;
compoundKwdpart: () => void;
compoundSubject: () => void;
compoundSubjectpart: () => void;
confAcronym: () => void;
confDate: () => void;
confLoc: () => void;
confName: () => void;
confNum: () => void;
confSponsor: () => void;
confTheme: () => void;
conference: () => void;
contrib: () => void;
contribGroup: (j: J, node: Node) => TexastContent[];
contribId: () => void;
contributedResourcegroup: () => void;
copyrightHolder: () => void;
copyrightStatement: () => void;
copyrightYear: () => void;
corresp: () => void;
count: () => void;
country: () => void;
counts: () => void;
customMeta: () => void;
customMetagroup: () => void;
dataTitle: () => void;
date: () => void;
dateIncitation: () => void;
day: () => void;
def: () => void;
defHead: () => void;
defItem: () => void;
defList: () => void;
degrees: () => void;
disp-quote: (j: J, node: DispQuote) => Environment;
dispFormula: () => void;
dispFormulagroup: () => void;
dispQuote: () => void;
edition: () => void;
elementCitation: () => void;
elocationId: () => void;
email: () => void;
equationCount: () => void;
era: () => void;
etal: () => void;
event: () => void;
eventDesc: () => void;
explanation: () => void;
extLink: (j: J, node: ExtLink) => {
children: CommandArg[];
name: string;
type: string;
};
extendedBy: () => void;
fax: () => void;
fig: (j: J, fig: Fig) => {
children: TexastContent[];
name: string;
type: string;
};
figCount: () => void;
figGroup: () => void;
fixedCase: () => void;
floatsGroup: () => void;
fn: (j: J, parent: Node) => TexastContent[];
fnGroup: (j: J, parent: Node) => TexastContent[];
fpage: () => void;
front: (j: J, node: Root) => TexastContent;
frontStub: () => void;
fundingGroup: () => void;
fundingSource: () => void;
fundingStatement: () => void;
givenNames: () => void;
glossary: () => void;
glyphData: () => void;
glyphRef: () => void;
gov: () => void;
graphic: (j: J, node: Graphic) => {
children: (CommandArg | {
type: string;
value: string;
})[];
name: string;
type: string;
};
history: () => void;
hr: () => void;
indexTerm: () => void;
indexTermrangeend: () => void;
inlineFormula: () => void;
inlineGraphic: (j: J, node: Graphic) => {
children: (CommandArg | {
type: string;
value: string;
})[];
name: string;
type: string;
};
inlineMedia: () => void;
inlineSupplementarymaterial: () => void;
institution: () => void;
institutionId: () => void;
institutionWrap: () => void;
instruction: () => void;
isbn: () => void;
issn: () => void;
issnL: () => void;
issue: () => void;
issueId: () => void;
issuePart: () => void;
issueSponsor: () => void;
issueSubtitle: () => void;
issueTitle: () => void;
issueTitlegroup: (j: J, node: Node) => TexastContent[];
italic: (j: J, node: Node) => TexastContent;
journalId: () => void;
journalMeta: () => void;
journalSubtitle: () => void;
journalTitle: (j: J, node: Parents, parent: Parent) => TexastContent;
journalTitlegroup: (j: J, node: Node) => TexastContent[];
kwd: () => void;
kwdGroup: () => void;
label: (j: J, node: Parents, parent: Parent) => TexastContent;
license: () => void;
licenseP: () => void;
list: (j: J, list: List) => {
children: TexastContent[];
name: string;
type: string;
};
listItem: (j: J, item: ListItem) => TexastContent;
longDesc: () => void;
lpage: () => void;
media: () => void;
metaName: () => void;
metaValue: () => void;
milestoneEnd: () => void;
milestoneStart: () => void;
mixedCitation: () => void;
monospace: () => void;
month: () => void;
name: () => void;
nameAlternatives: () => void;
namedContent: () => void;
nestedKwd: () => void;
nlmCitation: () => void;
note: () => void;
notes: () => void;
objectId: () => void;
onBehalfof: () => void;
openAccess: () => void;
option: () => void;
overline: () => void;
overlineEnd: () => void;
overlineStart: () => void;
p: (j: J, p: P) => TexastContent;
pageCount: () => void;
pageRange: () => void;
partTitle: () => void;
patent: () => void;
permissions: () => void;
personGroup: () => void;
phone: () => void;
postalCode: () => void;
prefix: () => void;
preformat: () => void;
price: () => void;
principalAwardrecipient: () => void;
principalInvestigator: () => void;
privateChar: () => void;
processingMeta: () => void;
product: () => void;
pubDate: () => void;
pubDatenotavailable: () => void;
pubHistory: () => void;
pubId: () => void;
publisher: () => void;
publisherLoc: () => void;
publisherName: () => void;
question: () => void;
questionPreamble: () => void;
questionWrap: () => void;
questionWrapgroup: () => void;
rb: () => void;
ref: () => void;
refCount: () => void;
refList: (j: J, list: RefList) => Environment | undefined;
relatedArticle: () => void;
relatedObject: () => void;
resourceId: () => void;
resourceName: () => void;
resourceWrap: () => void;
response: () => void;
restrictedBy: () => void;
role: () => void;
roman: () => void;
root: (j: J, node: Root) => TexastContent;
rp: () => void;
rt: () => void;
ruby: () => void;
sansSerif: (j: J, node: Parents, parent: Parent) => TexastContent;
sc: (j: J, node: Parents, parent: Parent) => TexastContent;
season: () => void;
sec: (j: J, node: Parents) => TexastContent[];
secMeta: () => void;
see: () => void;
seeAlso: () => void;
selfUri: () => void;
series: () => void;
seriesText: () => void;
seriesTitle: () => void;
sig: () => void;
sigBlock: () => void;
size: () => void;
source: () => void;
speaker: () => void;
speech: () => void;
state: () => void;
statement: () => void;
std: () => void;
stdOrganization: () => void;
strike: () => void;
stringConf: () => void;
stringDate: () => void;
stringName: () => void;
styledContent: () => void;
sub: (j: J, node: Node) => TexastContent;
subArticle: () => void;
subjGroup: () => void;
subject: () => void;
subtitle: () => void;
suffix: () => void;
sup: (j: J, node: Node) => TexastContent;
supplement: () => void;
supplementaryMaterial: () => void;
supportDescription: () => void;
supportGroup: () => void;
supportSource: () => void;
surname: () => void;
table: (j: J, table: Table) => {
children: TexastContent[];
name: string;
type: string;
};
tableCount: () => void;
tableWrap: (j: J, node: TableWrap) => TexastContent;
tableWrapfoot: () => void;
tableWrapgroup: () => void;
target: () => void;
tbody: (j: J, parent: Node) => TexastContent[];
td: (j: J, node: Td) => TableCell;
term: () => void;
termHead: () => void;
texMath: () => void;
text: (j: J, node: Text) => TexastContent;
textualForm: () => void;
tfoot: () => void;
th: () => void;
thead: () => void;
timeStamp: () => void;
title: (j: J, parent: Node) => TexastContent[];
titleGroup: (j: J, node: Node) => TexastContent[];
tr: (j: J, node: Tr) => TexastContent;
transAbstract: () => void;
transSource: () => void;
transSubtitle: () => void;
transTitle: (j: J, node: Parents, parent: Parent) => TexastContent;
transTitlegroup: (j: J, node: Node) => TexastContent[];
underline: () => void;
underlineEnd: () => void;
underlineStart: () => void;
unstructuredKwdgroup: () => void;
uri: () => void;
verseGroup: () => void;
verseLine: () => void;
version: () => void;
volume: (j: J, node: Parents, parent: Parent) => TexastContent;
volumeId: () => void;
volumeIssuegroup: () => void;
volumeSeries: (j: J, node: Parents, parent: Parent) => TexastContent;
wordCount: () => void;
x: () => void;
xml: () => void;
xref: (j: J, node: Xref) => TexastContent;
year: () => void;
}
Member | Type |
---|---|
abbrev | () => void |
abbrevJournaltitle | () => void |
abstract | () => void |
accessDate | () => void |
ack | () => void |
addrLine | () => void |
address | () => void |
aff | () => void |
affAlternatives | () => void |
altText | () => void |
altTitle | () => void |
alternatives | () => void |
annotation | () => void |
anonymous | () => void |
answer | () => void |
answerSet | () => void |
app | () => void |
appGroup | () => void |
array | () => void |
article | (j : J , node : Root ) => TexastContent |
articleCategories | () => void |
articleId | () => void |
articleMeta | () => void |
articleTitle | (j : J , node : Parents , parent : Parent ) => TexastContent |
articleVersion | () => void |
articleVersionalternatives | () => void |
attrib | () => void |
authorComment | () => void |
authorNotes | () => void |
awardDesc | () => void |
awardGroup | () => void |
awardId | () => void |
awardName | () => void |
back | (j : J , parent : Node ) => TexastContent [] |
bio | () => void |
blockAlternatives | () => void |
body | (j : J , node : Root ) => TexastContent |
bold | (j : J , node : Parents , parent : Parent ) => TexastContent |
boxedText | () => void |
break | () => void |
caption | (j : J , node : Parents , parent : Parent ) => TexastContent |
chapterTitle | () => void |
chemStruct | () => void |
chemStructwrap | () => void |
citationAlternatives | () => void |
city | () => void |
code | () => void |
col | () => void |
colgroup | () => void |
collab | () => void |
collabAlternatives | () => void |
command | (j : J , node : Parents , parent : Parent ) => TexastContent |
comment | () => void |
compoundKwd | () => void |
compoundKwdpart | () => void |
compoundSubject | () => void |
compoundSubjectpart | () => void |
confAcronym | () => void |
confDate | () => void |
confLoc | () => void |
confName | () => void |
confNum | () => void |
confSponsor | () => void |
confTheme | () => void |
conference | () => void |
contrib | () => void |
contribGroup | (j : J , node : Node ) => TexastContent [] |
contribId | () => void |
contributedResourcegroup | () => void |
copyrightHolder | () => void |
copyrightStatement | () => void |
copyrightYear | () => void |
corresp | () => void |
count | () => void |
country | () => void |
counts | () => void |
customMeta | () => void |
customMetagroup | () => void |
dataTitle | () => void |
date | () => void |
dateIncitation | () => void |
day | () => void |
def | () => void |
defHead | () => void |
defItem | () => void |
defList | () => void |
degrees | () => void |
disp-quote | (j : J , node : DispQuote ) => Environment |
dispFormula | () => void |
dispFormulagroup | () => void |
dispQuote | () => void |
edition | () => void |
elementCitation | () => void |
elocationId | () => void |
email | () => void |
equationCount | () => void |
era | () => void |
etal | () => void |
event | () => void |
eventDesc | () => void |
explanation | () => void |
extLink | (j : J , node : ExtLink ) => { children : CommandArg []; name : string ; type : string ; } |
extendedBy | () => void |
fax | () => void |
fig | (j : J , fig : Fig ) => { children : TexastContent []; name : string ; type : string ; } |
figCount | () => void |
figGroup | () => void |
fixedCase | () => void |
floatsGroup | () => void |
fn | (j : J , parent : Node ) => TexastContent [] |
fnGroup | (j : J , parent : Node ) => TexastContent [] |
fpage | () => void |
front | (j : J , node : Root ) => TexastContent |
frontStub | () => void |
fundingGroup | () => void |
fundingSource | () => void |
fundingStatement | () => void |
givenNames | () => void |
glossary | () => void |
glyphData | () => void |
glyphRef | () => void |
gov | () => void |
graphic | (j : J , node : Graphic ) => { children : (CommandArg |
history | () => void |
hr | () => void |
indexTerm | () => void |
indexTermrangeend | () => void |
inlineFormula | () => void |
inlineGraphic | (j : J , node : Graphic ) => { children : (CommandArg |
inlineMedia | () => void |
inlineSupplementarymaterial | () => void |
institution | () => void |
institutionId | () => void |
institutionWrap | () => void |
instruction | () => void |
isbn | () => void |
issn | () => void |
issnL | () => void |
issue | () => void |
issueId | () => void |
issuePart | () => void |
issueSponsor | () => void |
issueSubtitle | () => void |
issueTitle | () => void |
issueTitlegroup | (j : J , node : Node ) => TexastContent [] |
italic | (j : J , node : Node ) => TexastContent |
journalId | () => void |
journalMeta | () => void |
journalSubtitle | () => void |
journalTitle | (j : J , node : Parents , parent : Parent ) => TexastContent |
journalTitlegroup | (j : J , node : Node ) => TexastContent [] |
kwd | () => void |
kwdGroup | () => void |
label | (j : J , node : Parents , parent : Parent ) => TexastContent |
license | () => void |
licenseP | () => void |
list | (j : J , list : List ) => { children : TexastContent []; name : string ; type : string ; } |
listItem | (j : J , item : ListItem ) => TexastContent |
longDesc | () => void |
lpage | () => void |
media | () => void |
metaName | () => void |
metaValue | () => void |
milestoneEnd | () => void |
milestoneStart | () => void |
mixedCitation | () => void |
monospace | () => void |
month | () => void |
name | () => void |
nameAlternatives | () => void |
namedContent | () => void |
nestedKwd | () => void |
nlmCitation | () => void |
note | () => void |
notes | () => void |
objectId | () => void |
onBehalfof | () => void |
openAccess | () => void |
option | () => void |
overline | () => void |
overlineEnd | () => void |
overlineStart | () => void |
p | (j : J , p : P ) => TexastContent |
pageCount | () => void |
pageRange | () => void |
partTitle | () => void |
patent | () => void |
permissions | () => void |
personGroup | () => void |
phone | () => void |
postalCode | () => void |
prefix | () => void |
preformat | () => void |
price | () => void |
principalAwardrecipient | () => void |
principalInvestigator | () => void |
privateChar | () => void |
processingMeta | () => void |
product | () => void |
pubDate | () => void |
pubDatenotavailable | () => void |
pubHistory | () => void |
pubId | () => void |
publisher | () => void |
publisherLoc | () => void |
publisherName | () => void |
question | () => void |
questionPreamble | () => void |
questionWrap | () => void |
questionWrapgroup | () => void |
rb | () => void |
ref | () => void |
refCount | () => void |
refList | (j : J , list : RefList ) => Environment |
relatedArticle | () => void |
relatedObject | () => void |
resourceId | () => void |
resourceName | () => void |
resourceWrap | () => void |
response | () => void |
restrictedBy | () => void |
role | () => void |
roman | () => void |
root | (j : J , node : Root ) => TexastContent |
rp | () => void |
rt | () => void |
ruby | () => void |
sansSerif | (j : J , node : Parents , parent : Parent ) => TexastContent |
sc | (j : J , node : Parents , parent : Parent ) => TexastContent |
season | () => void |
sec | (j : J , node : Parents ) => TexastContent [] |
secMeta | () => void |
see | () => void |
seeAlso | () => void |
selfUri | () => void |
series | () => void |
seriesText | () => void |
seriesTitle | () => void |
sig | () => void |
sigBlock | () => void |
size | () => void |
source | () => void |
speaker | () => void |
speech | () => void |
state | () => void |
statement | () => void |
std | () => void |
stdOrganization | () => void |
strike | () => void |
stringConf | () => void |
stringDate | () => void |
stringName | () => void |
styledContent | () => void |
sub | (j : J , node : Node ) => TexastContent |
subArticle | () => void |
subjGroup | () => void |
subject | () => void |
subtitle | () => void |
suffix | () => void |
sup | (j : J , node : Node ) => TexastContent |
supplement | () => void |
supplementaryMaterial | () => void |
supportDescription | () => void |
supportGroup | () => void |
supportSource | () => void |
surname | () => void |
table | (j : J , table : Table ) => { children : TexastContent []; name : string ; type : string ; } |
tableCount | () => void |
tableWrap | (j : J , node : TableWrap ) => TexastContent |
tableWrapfoot | () => void |
tableWrapgroup | () => void |
target | () => void |
tbody | (j : J , parent : Node ) => TexastContent [] |
td | (j : J , node : Td ) => TableCell |
term | () => void |
termHead | () => void |
texMath | () => void |
text | (j : J , node : Text ) => TexastContent |
textualForm | () => void |
tfoot | () => void |
th | () => void |
thead | () => void |
timeStamp | () => void |
title | (j : J , parent : Node ) => TexastContent [] |
titleGroup | (j : J , node : Node ) => TexastContent [] |
tr | (j : J , node : Tr ) => TexastContent |
transAbstract | () => void |
transSource | () => void |
transSubtitle | () => void |
transTitle | (j : J , node : Parents , parent : Parent ) => TexastContent |
transTitlegroup | (j : J , node : Node ) => TexastContent [] |
underline | () => void |
underlineEnd | () => void |
underlineStart | () => void |
unstructuredKwdgroup | () => void |
uri | () => void |
verseGroup | () => void |
verseLine | () => void |
version | () => void |
volume | (j : J , node : Parents , parent : Parent ) => TexastContent |
volumeId | () => void |
volumeIssuegroup | () => void |
volumeSeries | (j : J , node : Parents , parent : Parent ) => TexastContent |
wordCount | () => void |
x | () => void |
xml | () => void |
xref | (j : J , node : Xref ) => TexastContent |
year | () => void |
Defined in: src/lib/handlers/index.ts:29
Context
baseFound
boolean
Defined in: src/lib/types.ts:59
bibname
string
Defined in: src/lib/types.ts:76
booktabs
boolean
Defined in: src/lib/types.ts:68
checked
string
Defined in: src/lib/types.ts:66
citationAnalyzer
Function
Signature`
(node: Node): string;
Parameters`
Name | Type |
---|---|
node | Node |
Returns`
string
Defined in: src/lib/types.ts:81
columnSeparator
boolean
Defined in: src/lib/types.ts:77
document
undefined
|boolean
Defined in: src/lib/types.ts:65
documentClass
object
{
name: string;
options?: string[];
}
Member | Type |
---|---|
name | string |
options ? | string [] |
Defined in: src/lib/types.ts:71
footnotes
Record
<string
,TexastContent
[]>
Defined in: src/lib/types.ts:78
frozenBaseUrl
null
|string
Defined in: src/lib/types.ts:60
handlers
object
Defined in: src/lib/types.ts:64
inTable
boolean
Defined in: src/lib/types.ts:62
italics
string
Defined in: src/lib/types.ts:70
nodeById?
object
Defined in: src/lib/types.ts:56
numberOfRows
number
Defined in: src/lib/types.ts:80
qNesting
number
Defined in: src/lib/types.ts:63
quotes
string
[]
Defined in: src/lib/types.ts:69
rowNumber
number
Defined in: src/lib/types.ts:79
sectionDepth
number
Defined in: src/lib/types.ts:75
unchecked
string
Defined in: src/lib/types.ts:67
wrapText
boolean
Defined in: src/lib/types.ts:61
Name
Node
.Nameattributes
object
{
id?: string;
nameStyle?: NameTypeNameStyle;
specificUse?: string;
}
Member | Type |
---|---|
id ? | string |
nameStyle ? | NameTypeNameStyle |
specificUse ? | string |
Defined in: libs/jast/jast/src/lib/jats.ts:6790
children
(
Text
|GivenNames
|Prefix
|Suffix
|Surname
)[]
Defined in: libs/jast/jast/src/lib/jats.ts:6796
data?
Data
Information from the ecosystem.
Inherited from: UnistNode.data
Defined in: node_modules/.pnpm/@types+unist@2.0.6/node_modules/@types/unist/index.d.ts:27
name
"name"
Defined in: libs/jast/jast/src/lib/jats.ts:6789
position?
Position
Location of a node in a source document. Must not be present if a node is generated.
Inherited from: UnistNode.position
Defined in: node_modules/.pnpm/@types+unist@2.0.6/node_modules/@types/unist/index.d.ts:33
type
"element"
Overrides: UnistNode.type
Defined in: libs/jast/jast/src/lib/jats.ts:6788
Options
bibname?
string
Defined in: src/lib/types.ts:39
booktabs?
boolean
Defined in: src/lib/types.ts:41
checked?
string
Defined in: src/lib/types.ts:34
citationAnalyzer?
Function
Signature`
(node: Node): string;
Parameters`
Name | Type |
---|---|
node | Node |
Returns`
string
Defined in: src/lib/types.ts:46
columnSeparator?
boolean
Defined in: src/lib/types.ts:40
document?
boolean
Defined in: src/lib/types.ts:32
documentClass?
object
{
name: string;
options?: string[];
}
Member | Type |
---|---|
name | string |
options ? | string [] |
Defined in: src/lib/types.ts:42
handlers?
object
Defined in: src/lib/types.ts:31
italics?
"emph"
|"textit"
Defined in: src/lib/types.ts:38
newLines?
boolean
Defined in: src/lib/types.ts:33
quotes?
string
[]
Defined in: src/lib/types.ts:36
topSection?
number
Defined in: src/lib/types.ts:37
unchecked?
string
Defined in: src/lib/types.ts:35
Parent
Parent
.Parentchildren
(
Text
|Bold
|FixedCase
|Italic
|Monospace
|NamedContent
|Overline
|Roman
|Ruby
|SansSerif
|Sc
|Strike
|StyledContent
|Sub
|Sup
|Underline
|AbbrevJournaltitle
|Abbrev
|Def
|Abstract
|Label
|ObjectId
|P
|Sec
|Title
|AccessDate
|Ack
|KwdGroup
|RefList
|SubjGroup
|Address
|AddrLine
|City
|Country
|ExtLink
|Fax
|Institution
|InstitutionWrap
|Phone
|PostalCode
|State
|Uri
|Alternatives
|ChemStruct
|IndexTerm
|IndexTermrangeend
|InlineFormula
|InlineGraphic
|InlineMedia
|MilestoneEnd
|MilestoneStart
|PrivateChar
|AffAlternatives
|Aff
|Break
|Fn
|InlineSupplementarymaterial
|RelatedArticle
|RelatedObject
|Target
|Xref
|Array
|Code
|Graphic
|Media
|Preformat
|SupplementaryMaterial
|Table
|TexMath
|TextualForm
|AltText
|AltTitle
|Annotation
|Anonymous
|AnswerSet
|Answer
|Explanation
|Subtitle
|BlockAlternatives
|BoxedText
|ChemStructwrap
|DefList
|DispFormula
|DispFormulagroup
|DispQuote
|Fig
|FigGroup
|FnGroup
|Glossary
|List
|Question
|QuestionWrap
|QuestionWrapgroup
|Speech
|Statement
|TableWrap
|TableWrapgroup
|VerseGroup
|AppGroup
|App
|Permissions
|SecMeta
|Attrib
|LongDesc
|Tbody
|ArticleCategories
|SeriesText
|SeriesTitle
|ArticleId
|ArticleMeta
|Isbn
|ArticleVersion
|ArticleVersionalternatives
|AuthorNotes
|Conference
|ContribGroup
|Counts
|CustomMetagroup
|ElocationId
|Fpage
|FundingGroup
|History
|Issue
|IssueId
|IssuePart
|IssueSponsor
|IssueTitle
|IssueTitlegroup
|Lpage
|PageRange
|Product
|PubDate
|PubDatenotavailable
|PubHistory
|SelfUri
|Supplement
|SupportGroup
|TitleGroup
|TransAbstract
|Volume
|VolumeId
|VolumeIssuegroup
|VolumeSeries
|ArticleTitle
|Article
|Back
|Body
|FloatsGroup
|Front
|ProcessingMeta
|Response
|SubArticle
|AuthorComment
|Corresp
|AwardDesc
|AwardGroup
|AwardId
|AwardName
|FundingSource
|PrincipalAwardrecipient
|PrincipalInvestigator
|SupportSource
|Bio
|Notes
|SigBlock
|Caption
|ChapterTitle
|CitationAlternatives
|ElementCitation
|MixedCitation
|NlmCitation
|Colgroup
|Col
|CollabAlternatives
|Collab
|OnBehalfof
|Role
|Comment
|CompoundKwdpart
|CompoundKwd
|CompoundSubjectpart
|CompoundSubject
|ConfAcronym
|ConfDate
|ConfLoc
|ConfName
|ConfNum
|ConfSponsor
|ConfTheme
|Contrib
|ContribId
|Degrees
|Name
|NameAlternatives
|StringName
|ContributedResourcegroup
|ResourceGroup
|SupportDescription
|CopyrightHolder
|CopyrightStatement
|CopyrightYear
|Count
|EquationCount
|FigCount
|PageCount
|RefCount
|TableCount
|WordCount
|CustomMeta
|MetaName
|MetaValue
|DataTitle
|DateIncitation
|Day
|Era
|Month
|Season
|Year
|Date
|DefHead
|DefItem
|Term
|TermHead
|Edition
|Etal
|Gov
|Issn
|IssnL
|PartTitle
|Patent
|PersonGroup
|PubId
|PublisherLoc
|PublisherName
|Series
|Size
|Source
|Std
|StringDate
|TransSource
|TransTitle
|Version
|EventDesc
|Event
|ExtendedBy
|FrontStub
|JournalMeta
|FundingStatement
|OpenAccess
|GivenNames
|GlyphData
|GlyphRef
|Hr
|See
|SeeAlso
|InstitutionId
|IssueSubtitle
|TransTitlegroup
|JournalId
|JournalTitlegroup
|Publisher
|JournalSubtitle
|JournalTitle
|Kwd
|NestedKwd
|LicenseP
|Price
|License
|ListItem
|Prefix
|Suffix
|Surname
|TimeStamp
|Note
|Option
|OverlineEnd
|OverlineStart
|RestrictedBy
|QuestionPreamble
|Rb
|Ref
|ResourceName
|ResourceWrap
|ResourceId
|Rp
|Rt
|Sig
|Speaker
|StdOrganization
|StringConf
|Subject
|Tfoot
|Thead
|Tr
|TableWrapfoot
|Td
|Th
|TransSubtitle
|UnderlineEnd
|UnderlineStart
|UnstructuredKwdgroup
|VerseLine
|X
)[]
Overrides: UnistParent.children
Defined in: libs/jast/jast/src/lib/rejour.ts:25
data?
Data
Information from the ecosystem.
Inherited from: UnistParent.data
Defined in: node_modules/.pnpm/@types+unist@2.0.6/node_modules/@types/unist/index.d.ts:27
position?
Position
Location of a node in a source document. Must not be present if a node is generated.
Inherited from: UnistParent.position
Defined in: node_modules/.pnpm/@types+unist@2.0.6/node_modules/@types/unist/index.d.ts:33
type
string
The variant of a node.
Inherited from: UnistParent.type
Defined in: node_modules/.pnpm/@types+unist@2.0.6/node_modules/@types/unist/index.d.ts:22
Root
Parent
.Rootchildren
(
Text
|Bold
|FixedCase
|Italic
|Monospace
|NamedContent
|Overline
|Roman
|Ruby
|SansSerif
|Sc
|Strike
|StyledContent
|Sub
|Sup
|Underline
|AbbrevJournaltitle
|Abbrev
|Def
|Abstract
|Label
|ObjectId
|P
|Sec
|Title
|AccessDate
|Ack
|KwdGroup
|RefList
|SubjGroup
|Address
|AddrLine
|City
|Country
|ExtLink
|Fax
|Institution
|InstitutionWrap
|Phone
|PostalCode
|State
|Uri
|Alternatives
|ChemStruct
|IndexTerm
|IndexTermrangeend
|InlineFormula
|InlineGraphic
|InlineMedia
|MilestoneEnd
|MilestoneStart
|PrivateChar
|AffAlternatives
|Aff
|Break
|Fn
|InlineSupplementarymaterial
|RelatedArticle
|RelatedObject
|Target
|Xref
|Array
|Code
|Graphic
|Media
|Preformat
|SupplementaryMaterial
|Table
|TexMath
|TextualForm
|AltText
|AltTitle
|Annotation
|Anonymous
|AnswerSet
|Answer
|Explanation
|Subtitle
|BlockAlternatives
|BoxedText
|ChemStructwrap
|DefList
|DispFormula
|DispFormulagroup
|DispQuote
|Fig
|FigGroup
|FnGroup
|Glossary
|List
|Question
|QuestionWrap
|QuestionWrapgroup
|Speech
|Statement
|TableWrap
|TableWrapgroup
|VerseGroup
|AppGroup
|App
|Permissions
|SecMeta
|Attrib
|LongDesc
|Tbody
|ArticleCategories
|SeriesText
|SeriesTitle
|ArticleId
|ArticleMeta
|Isbn
|ArticleVersion
|ArticleVersionalternatives
|AuthorNotes
|Conference
|ContribGroup
|Counts
|CustomMetagroup
|ElocationId
|Fpage
|FundingGroup
|History
|Issue
|IssueId
|IssuePart
|IssueSponsor
|IssueTitle
|IssueTitlegroup
|Lpage
|PageRange
|Product
|PubDate
|PubDatenotavailable
|PubHistory
|SelfUri
|Supplement
|SupportGroup
|TitleGroup
|TransAbstract
|Volume
|VolumeId
|VolumeIssuegroup
|VolumeSeries
|ArticleTitle
|Article
|Back
|Body
|FloatsGroup
|Front
|ProcessingMeta
|Response
|SubArticle
|AuthorComment
|Corresp
|AwardDesc
|AwardGroup
|AwardId
|AwardName
|FundingSource
|PrincipalAwardrecipient
|PrincipalInvestigator
|SupportSource
|Bio
|Notes
|SigBlock
|Caption
|ChapterTitle
|CitationAlternatives
|ElementCitation
|MixedCitation
|NlmCitation
|Colgroup
|Col
|CollabAlternatives
|Collab
|OnBehalfof
|Role
|Comment
|CompoundKwdpart
|CompoundKwd
|CompoundSubjectpart
|CompoundSubject
|ConfAcronym
|ConfDate
|ConfLoc
|ConfName
|ConfNum
|ConfSponsor
|ConfTheme
|Contrib
|ContribId
|Degrees
|Name
|NameAlternatives
|StringName
|ContributedResourcegroup
|ResourceGroup
|SupportDescription
|CopyrightHolder
|CopyrightStatement
|CopyrightYear
|Count
|EquationCount
|FigCount
|PageCount
|RefCount
|TableCount
|WordCount
|CustomMeta
|MetaName
|MetaValue
|DataTitle
|DateIncitation
|Day
|Era
|Month
|Season
|Year
|Date
|DefHead
|DefItem
|Term
|TermHead
|Edition
|Etal
|Gov
|Issn
|IssnL
|PartTitle
|Patent
|PersonGroup
|PubId
|PublisherLoc
|PublisherName
|Series
|Size
|Source
|Std
|StringDate
|TransSource
|TransTitle
|Version
|EventDesc
|Event
|ExtendedBy
|FrontStub
|JournalMeta
|FundingStatement
|OpenAccess
|GivenNames
|GlyphData
|GlyphRef
|Hr
|See
|SeeAlso
|InstitutionId
|IssueSubtitle
|TransTitlegroup
|JournalId
|JournalTitlegroup
|Publisher
|JournalSubtitle
|JournalTitle
|Kwd
|NestedKwd
|LicenseP
|Price
|License
|ListItem
|Prefix
|Suffix
|Surname
|TimeStamp
|Note
|Option
|OverlineEnd
|OverlineStart
|RestrictedBy
|QuestionPreamble
|Rb
|Ref
|ResourceName
|ResourceWrap
|ResourceId
|Rp
|Rt
|Sig
|Speaker
|StdOrganization
|StringConf
|Subject
|Tfoot
|Thead
|Tr
|TableWrapfoot
|Td
|Th
|TransSubtitle
|UnderlineEnd
|UnderlineStart
|UnstructuredKwdgroup
|VerseLine
|X
|Instruction
|Doctype
)[]
Overrides: UnistParent.children
Defined in: libs/jast/jast/src/lib/rejour.ts:20
data?
Data
Information from the ecosystem.
Inherited from: UnistParent.data
Defined in: node_modules/.pnpm/@types+unist@2.0.6/node_modules/@types/unist/index.d.ts:27
position?
Position
Location of a node in a source document. Must not be present if a node is generated.
Inherited from: UnistParent.position
Defined in: node_modules/.pnpm/@types+unist@2.0.6/node_modules/@types/unist/index.d.ts:33
type
"root"
Overrides: UnistParent.type
Defined in: libs/jast/jast/src/lib/rejour.ts:19
TexastLiteral
Nodes containing a value.
Value
= unknown
Specific value type of Literal.value such as string
for Text
nodeTData
extends object
= Data
Node
<TData
>.TexastLiteraldata?
TData
Information from the ecosystem.
Inherited from: Node.data
Defined in: node_modules/.pnpm/@types+unist@2.0.6/node_modules/@types/unist/index.d.ts:27
position?
Position
Location of a node in a source document. Must not be present if a node is generated.
Inherited from: Node.position
Defined in: node_modules/.pnpm/@types+unist@2.0.6/node_modules/@types/unist/index.d.ts:33
type
string
The variant of a node.
Inherited from: Node.type
Defined in: node_modules/.pnpm/@types+unist@2.0.6/node_modules/@types/unist/index.d.ts:22
value
Value
Defined in: node_modules/.pnpm/@types+unist@2.0.6/node_modules/@types/unist/index.d.ts:113
TexastParent
Parent
.TexastParentchildren
Overrides: UnistParent.children
Defined in: libs/texast/texast/src/lib/texast.ts:106
data?
Data
Information from the ecosystem.
Inherited from: UnistParent.data
Defined in: node_modules/.pnpm/@types+unist@2.0.6/node_modules/@types/unist/index.d.ts:27
position?
Position
Location of a node in a source document. Must not be present if a node is generated.
Inherited from: UnistParent.position
Defined in: node_modules/.pnpm/@types+unist@2.0.6/node_modules/@types/unist/index.d.ts:33
type
string
The variant of a node.
Inherited from: UnistParent.type
Defined in: node_modules/.pnpm/@types+unist@2.0.6/node_modules/@types/unist/index.d.ts:22
TexastRoot
TexastParent
.TexastRootchildren
Inherited from: TexastParent.children
Defined in: libs/texast/texast/src/lib/texast.ts:106
data?
Data
Information from the ecosystem.
Inherited from: TexastParent.data
Defined in: node_modules/.pnpm/@types+unist@2.0.6/node_modules/@types/unist/index.d.ts:27
position?
Position
Location of a node in a source document. Must not be present if a node is generated.
Inherited from: TexastParent.position
Defined in: node_modules/.pnpm/@types+unist@2.0.6/node_modules/@types/unist/index.d.ts:33
type
"root"
The variant of a node.
Overrides: TexastParent.type
Defined in: libs/texast/texast/src/lib/texast.ts:86
Text
Nodes containing a value.
TexastLiteral
.Textdata?
Data
Information from the ecosystem.
Inherited from: TexastLiteral.data
Defined in: node_modules/.pnpm/@types+unist@2.0.6/node_modules/@types/unist/index.d.ts:27
position?
Position
Location of a node in a source document. Must not be present if a node is generated.
Inherited from: TexastLiteral.position
Defined in: node_modules/.pnpm/@types+unist@2.0.6/node_modules/@types/unist/index.d.ts:33
type
"text"
The variant of a node.
Overrides: TexastLiteral.type
Defined in: libs/jast/jast/src/lib/jats.ts:43
value
string
Overrides: TexastLiteral.value
Defined in: libs/jast/jast/src/lib/jats.ts:44
Attributes
JastProperties
Defined in: src/lib/types.ts:29
Content
ValuesType
<documentMap
>
Defined in: libs/jast/jast/src/lib/jats.ts:13710
Element
Extract
<Content
, {type
:"element"
; }>
Defined in: libs/jast/jast/src/lib/jats.ts:13711
Handle
Function
Signature
(j: J, node: any, parent?: Parent): TexastContent | TexastContent[] | void;
Parameters
Name | Type |
---|---|
j | J |
node | any |
parent? | Parent |
Returns
TexastContent
| TexastContent
[] | void
Defined in: src/lib/types.ts:49
J
Defined in: src/lib/types.ts:106
JWithProps
Function
Signature
(
node: Node,
type: string,
props?: Attributes,
children?: string | TexastContent[]): TexastContent;
Parameters
Name | Type |
---|---|
node | Node |
type | string |
props? | Attributes |
children? | string |
Returns
Defined in: src/lib/types.ts:84
JWithPropsSpecific
<
TNode
>Function
TNode
extends TexastContent
= TexastContent
Signature
(
node: Node,
type: Pick<TNode, "type">,
props?: Attributes,
children?: Pick<TNode, "children">): TNode;
Parameters
Name | Type |
---|---|
node | Node |
type | Pick <TNode , "type" > |
props? | Attributes |
children? | Pick <TNode , "children" > |
Returns
TNode
Defined in: src/lib/types.ts:97
JWithoutProps
Function
Signature
(node: Node, type: string, children?: string | TexastContent[]): TexastContent;
Parameters
Name | Type |
---|---|
node | Node |
type | string |
children? | string |
Returns
Defined in: src/lib/types.ts:91
Node
jast Node
Defined in: src/lib/types.ts:26
Parents
Defined in: src/lib/types.ts:122
TexastContent
TopLevelDocumentContent
|PreambleContent
|AlignmentContent
|MathContent
|CommandContent
|TexastParagraphContent
|CommandArg
|ListContent
|Text
|Comment
|TabularContent
|TableRowContent
Defined in: libs/texast/texast/src/lib/texast.ts:32
TexastParagraphContent
Text
|InlineMath
|Command
|Comment
Defined in: libs/texast/texast/src/lib/texast.ts:75
GPL-3.0-or-later © Thomas F. K. Jorna
FAQs
Utility to convert a [jast][jast] tree to a [texast][texast] tree.
The npm package jast-util-to-texast receives a total of 0 weekly downloads. As such, jast-util-to-texast popularity was classified as not popular.
We found that jast-util-to-texast demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.