jstrs

String functions

Usage no npm install needed!

<script type="module">
  import jstrs from 'https://cdn.skypack.dev/jstrs';
</script>

README

NPM version"> Build Status Coverage Status

jstrs

Javascript String functions

jstrs 常用字符串处理函数

e.g.

  • input:
console.log(jstrs.format('#{0} #{1} {0}', [10, 2])); // '10 2 10'
console.log(jstrs.encodeHTML('<div>')); // '&lt;div;&gt;'

License

MIT © zswang