unist-util-remove-position:从树中删除位置的实用程序

时间:2024-08-23 09:25:11
【文件属性】:

文件名称:unist-util-remove-position:从树中删除位置的实用程序

文件大小:7KB

文件格式:ZIP

更新时间:2024-08-23 09:25:11

position clean syntax-tree util strip

unist-util-remove-position 从树中删除 s 的实用程序。 安装 此包 :需要 Node 12+ 才能使用它,并且必须使用import ed 而不是require d。 : npm install unist-util-remove-position 采用 import remark from 'remark' import { removePosition } from 'unist-util-remove-position' const tree = remark ( ) . parse ( 'Some _emphasis_, **importance**, and `code`.' ) removePosition ( tree , true ) console . dir ( tree , { depth : null } ) 产量: {


【文件预览】:
unist-util-remove-position-main
----index.js(1KB)
----test.js(1KB)
----package.json(2KB)
----index.test-d.ts(525B)
----readme.md(3KB)
----.github()
--------workflows()
----.prettierignore(15B)
----license(1KB)
----tsconfig.json(344B)
----.gitignore(57B)
----.npmrc(19B)
----.editorconfig(147B)

网友评论