xast-util-to-xml:用于序列化为 XML 的实用程序

时间:2021-08-04 13:56:50
【文件属性】:
文件名称:xast-util-to-xml:用于序列化为 XML 的实用程序
文件大小:18KB
文件格式:ZIP
更新时间:2021-08-04 13:56:50
xml syntax-tree util stringify unist xast-util-to-xml 实用程序序列化为 XML。 安装 此包 :需要 Node 12+ 才能使用它,并且必须使用import ed 而不是require d。 : npm install xast-util-to-xml 采用 import { u } from 'unist-builder' import { x } from 'xastscript' import { toXml } from 'xast-util-to-xml' const tree = u ( 'root' , [ u ( 'instruction' , { name : 'xml' } , 'version="1.0" encoding="utf-8"' ) , u ( 'text' , '\n' ) , x ( 'ncx' , { xmlns : 'http://www.dais
【文件预览】:
xast-util-to-xml-main
----.github()
--------workflows()
----.prettierignore(15B)
----lib()
--------name.js(256B)
--------value.js(557B)
--------one.js(849B)
--------text.js(310B)
--------instruction.js(515B)
--------cdata.js(370B)
--------raw.js(343B)
--------all.js(618B)
--------util-escape.js(728B)
--------element.js(1KB)
--------index.js(2KB)
--------comment.js(314B)
--------doctype.js(778B)
----license(1KB)
----tsconfig.json(375B)
----test()
--------core.js(457B)
--------text.js(327B)
--------instruction.js(600B)
--------cdata.js(396B)
--------root.js(506B)
--------raw.js(564B)
--------attribute.js(5KB)
--------element.js(703B)
--------index.js(308B)
--------comment.js(503B)
--------doctype.js(2KB)
----.npmrc(19B)
----.editorconfig(147B)
----.gitignore(57B)
----index.js(101B)
----readme.md(5KB)
----package.json(2KB)

网友评论