文件名称:xastscript:创建 xast 树的实用程序
文件大小:17KB
文件格式:ZIP
更新时间:2024-08-24 07:53:36
xml syntax-tree util unist xast
脚本 实用程序来创建XML(如的和为 )。 安装 此包 :需要 Node 12+ 才能使用它,并且必须使用import ed 而不是require d。 纳米: npm install xastscript 采用 import { u } from 'unist-builder' import { x } from 'xastscript' // Children as an array: console . log ( x ( 'album' , { id : 123 } , [ x ( 'name' , 'Born in the U.S.A.' ) , x ( 'artist' , 'Bruce Springsteen' ) , x ( 'releasedate' , '1984-04-06' ) ] ) ) // Children as ar
【文件预览】:
xastscript-main
----.gitignore(155B)
----package.json(2KB)
----.npmrc(19B)
----index.js(210B)
----tsconfig.json(524B)
----.github()
--------workflows()
----.prettierignore(15B)
----license(1KB)
----script()
--------generate-jsx.js(2KB)
----lib()
--------jsx-classic.js(47B)
--------runtime.js(1KB)
--------index.js(4KB)
--------jsx-classic.d.ts(1KB)
--------jsx-automatic.d.ts(1KB)
--------jsx-automatic.js(47B)
----readme.md(8KB)
----test-d()
--------automatic.tsx(2KB)
--------classic.tsx(1KB)
--------index.tsx(901B)
----jsx-runtime.js(102B)
----test()
--------index.js(256B)
--------core.js(4KB)
--------jsx.jsx(2KB)
----.editorconfig(147B)