【文件属性】:
文件名称:python-format-js:字符串格式化,如 Python 的 .format()
文件大小:13KB
文件格式:ZIP
更新时间:2021-07-24 01:09:01
JavaScript
概述
字符串格式化,如 Python 的 .format()
Obs:预期结果与Python相同
安装
节点
安装:
$ npm install python-format-js
要么
$ yarn add python-format-js
要求:
const format = require ( "python-format-js" ) ;
测试
```console
$ npm test
```
or
```console
$ yarn test
```
你可以做
- Basic formatting
- Padding and aligning strings
- Truncating long strings
- Combining truncating and padding
- Signed numbers
- Named placeholders
【文件预览】:
python-format-js-master
----.travis.yml(128B)
----Examples.md(4KB)
----index.js(8KB)
----package.json(900B)
----.github()
--------ISSUE_TEMPLATE()
----Readme.md(7KB)
----LICENSE(1KB)
----CONTRIBUTING.md(527B)
----.gitignore(75B)
----CODE_OF_CONDUCT.md(3KB)
----tests.test.js(7KB)
----.editorconfig(130B)