【文件属性】:
文件名称:rocambole-indent:rocambole AST 缩进的助手
文件大小:9KB
文件格式:ZIP
更新时间:2021-06-08 19:10:57
JavaScript
rocambole 缩进
操作 Indent标记的助手。
主要由及其插件使用。
应用程序接口
var indent = require ( 'rocambole-indent' ) ;
设置选项(选项)
setOptions用于设置缩进值。
setOptions ( {
// sets "value" used by `Indent` tokens (defaults to two spaces)
value : ' ' ,
// amount of indents added on `alignComments` if comment is inside an empty
// block (surrounded by `{}`, `[]` or `()`) - defaults to `1`
CommentInsideEmptyBlock : 1
} )
【文件预览】:
rocambole-indent-master
----.gitignore(14B)
----package.json(901B)
----LICENSE.md(1KB)
----CHANGELOG.md(1KB)
----README.md(4KB)
----test()
--------align_comment-input.js(1KB)
--------align_comment-output.js(1KB)
--------runner.js(2KB)
----rocambole-indent.js(9KB)