Lawtext core references / core/src/lawtext
core/src/lawtext
Interfaces
Variables
controlChoices
constcontrolChoices: readonly ["none","all","analysis"]
Defined in: core/src/lawtext.ts:26
intypeChoices
constintypeChoices: readonly ["fromext","lawtext","xml","json"]
Defined in: core/src/lawtext.ts:24
outtypeChoices
constouttypeChoices: readonly ["fromext","lawtext","xml","json","html","htmlfragment","docx"]
Defined in: core/src/lawtext.ts:25
runHelp
construnHelp: “usage: lawtext.run(<options>)\n\nexample: lawtext.run({ input: {elaws:\“405AC0000000088\”}, outtypes: [\“lawtext\”] }).then(r => console.log(r.lawtext))\n\noptions:\n input: { elaws: string } | { lawtext: string } | { xml: string } | { json: string }\n # For `elaws` input, specify lawID or lawNum to be requested to e-LAWS API.\n outtypes: (\“lawtext\” | \“xml\” | \“json\” | \“html\” | \“htmlfragment\” | \“docx\”)[]\n # Specify the output types.\n figpdf: \“srcText\” | \“embed\” | \“render\” | \“embedAndRender\” [default: \“embed\”]\n # (Only applicable for the combination of `elaws` input and `docx` output.)\n # Specify how to process embedded PDF files.\n includeAmendSupplProvisions: boolean [default: true]\n # If false, remove the amendment supplementary provisions\n # (`SupplProvision` elements with `AmendLawNum`) before analysis and output.\n analyze: boolean [default: false]\n # If true, conduct the analysis process.\n format: boolean [default: false]\n # If true, format the XML or JSON output.\n control: \“none\” | \“all\” | \“analysis\” [default: \“none\”]\n # Specify which control elements to emit in XML or JSON output.\n # \“none\”: Do not emit any control elements.\n # \“all\”: Emit all control elements with all attributes.\n # \“analysis\”: Emit only the control elements representing the analysis results\n # (____Declaration, ____VarRef, ____LawRef and ____PF) with limited attributes.\n”
Defined in: core/src/lawtext.ts:38
Functions
run()
run(
args):Promise<Partial<RunResult>>
Defined in: core/src/lawtext.ts:77
Parameters
args
Returns
Promise<Partial<RunResult>>
References
configurePdfjs
Re-exports configurePdfjs
PdfjsModule
Re-exports PdfjsModule
PdfjsOptions
Re-exports PdfjsOptions