align-text:将字符串中的文本对齐

时间:2021-02-22 07:48:08
【文件属性】:
文件名称:align-text:将字符串中的文本对齐
文件大小:10KB
文件格式:ZIP
更新时间:2021-02-22 07:48:08
nodejs javascript string text indentation 对齐文字 将文本对齐为字符串。 请关注该项目的作者 ,以获取有关该项目和其他项目的更新。 安装 使用安装: $ npm install --save align-text 用法 var align = require ( 'align-text' ) ; align ( text , function_or_integer ) ; 参数 text可以是字符串或数组。 如果传递了字符串,则将返回一个字符串。 如果传递数组,将返回一个数组。 function|integer :如果是整数,则文本将缩进该数量。 如果传递了转换函数,则它必须返回一个具有integer属性或整数的对象,该integer或整数表示要用作每行上的align循环的前导缩进量。 例子 align ( text , 4 ) ; 将对齐: abc abc abc 到: abc abc a
【文件预览】:
align-text-master
----.eslintrc.json(3KB)
----.gitignore(294B)
----package.json(1KB)
----.travis.yml(141B)
----LICENSE(1KB)
----index.js(1KB)
----test.js(3KB)
----.github()
--------FUNDING.yml(47B)
----.verb.md(4KB)
----README.md(6KB)
----example.js(784B)
----.gitattributes(127B)
----.editorconfig(289B)

网友评论