Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zswang/jstrs
String functions
https://github.com/zswang/jstrs
function javascript string
Last synced: about 1 month ago
JSON representation
String functions
- Host: GitHub
- URL: https://github.com/zswang/jstrs
- Owner: zswang
- Created: 2015-11-23T12:54:50.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-05-23T13:12:25.000Z (over 6 years ago)
- Last Synced: 2024-10-08T00:51:29.337Z (about 1 month ago)
- Topics: function, javascript, string
- Language: JavaScript
- Size: 47.9 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coverage Status][coverage-image]][coverage-url]
# jstrs
Javascript String functions
jstrs 常用字符串处理函数
e.g.
+ input:
```js
console.log(jstrs.format('#{0} #{1} {0}', [10, 2])); // '10 2 10'
console.log(jstrs.encodeHTML('')); // '<div;>'
```## License
MIT © [zswang](http://weibo.com/zswang)
[npm-url]: https://npmjs.org/package/jstrs
[npm-image]: https://badge.fury.io/js/jstrs.svg
[travis-url]: https://travis-ci.org/zswang/jstrs
[travis-image]: https://travis-ci.org/zswang/jstrs.svg?branch=master
[coverage-url]: https://coveralls.io/github/zswang/jstrs?branch=master
[coverage-image]: https://coveralls.io/repos/zswang/jstrs/badge.svg?branch=master&service=github