unist-util-find-all-before:在另一个节点之前查找节点的实用程序

时间:2021-08-04 22:24:04
【文件属性】:
文件名称:unist-util-find-all-before:在另一个节点之前查找节点的实用程序
文件大小:8KB
文件格式:ZIP
更新时间:2021-08-04 22:24:04
utility find syntax-tree util unist unist-util-find-all-before 在另一个节点之前查找节点的实用程序。 安装 此包 :需要 Node 12+ 才能使用它,并且必须使用import ed 而不是require d。 : npm install unist-util-find-all-before 采用 import { u } from 'unist-builder' import { findAllBefore } from 'unist-util-find-all-before' const tree = u ( 'tree' , [ u ( 'leaf' , 'leaf 1' ) , u ( 'node' , [ u ( 'leaf' , 'leaf 2' ) , u ( 'leaf' , 'leaf 3' ) ] ) , u ( 'leaf' , 'leaf 4' ) ,
【文件预览】:
unist-util-find-all-before-main
----.gitignore(57B)
----package.json(2KB)
----.npmrc(19B)
----index.js(2KB)
----tsconfig.json(344B)
----test.js(4KB)
----.github()
--------workflows()
----.prettierignore(15B)
----license(1KB)
----readme.md(5KB)
----.editorconfig(147B)

网友评论