Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zswang/termstring
The termstring module provides utilities for parsing and formatting term strings.
https://github.com/zswang/termstring
Last synced: about 1 month ago
JSON representation
The termstring module provides utilities for parsing and formatting term strings.
- Host: GitHub
- URL: https://github.com/zswang/termstring
- Owner: zswang
- Created: 2016-07-23T10:30:19.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-07-23T13:27:24.000Z (over 8 years ago)
- Last Synced: 2024-04-24T14:29:12.626Z (7 months ago)
- Language: JavaScript
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
termstring 条件字符串处理
-------# [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coverage Status][coverage-image]][coverage-url]
## 背景
生成比较直观的键值字符串用。
## 示例
### 转换前
```js
termstring.stringify(
{
"a": 1,
"b": 2,
"c": 3,
}
);
```### 转换后
```js
"[a]1[b]2[c]3"
```## License
MIT © [zswang](http://weibo.com/zswang)
[npm-url]: https://npmjs.org/package/termstring
[npm-image]: https://badge.fury.io/js/termstring.svg
[travis-url]: https://travis-ci.org/zswang/termstring
[travis-image]: https://travis-ci.org/zswang/termstring.svg?branch=master
[coverage-url]: https://coveralls.io/github/zswang/termstring?branch=master
[coverage-image]: https://coveralls.io/repos/zswang/termstring/badge.svg?branch=master&service=github