wordcount:计算字符串或RTF编辑器或html中的单词。 支持英语,中文

时间:2021-04-27 14:03:29
【文件属性】:
文件名称:wordcount:计算字符串或RTF编辑器或html中的单词。 支持英语,中文
文件大小:6KB
文件格式:ZIP
更新时间:2021-04-27 14:03:29
JavaScript 字数 计算字符串或RTF编辑器或html中的单词数。 支持英语,中文。 安装 使用安装: $ npm install @ycjcl868/wordcount --save 用法 var wordCount = require ( '@ycjcl868/wordcount' ) ; wordCount ( 'count words.' ) ; //=> 2 wordCount ( 'count words, again.' ) ; //=> 3 wordCount ( '

should 你好 html


hello

' ) //=> 4 变更日志 v1.0.2 2018.7.31 关于 相关项目 :如果传递的值为全空格,则返回true。 | :用于匹配字符串中的表达式。 | :用于匹配字符串中的表达式。 支持英语,中日韩和西里尔字母。 | :计算字符
【文件预览】:
wordcount-master
----.travis.yml(197B)
----index.js(546B)
----test.js(1KB)
----package.json(1KB)
----.eslintrc.json(4KB)
----LICENSE(1KB)
----.gitignore(232B)
----.verb.md(181B)
----README.md(2KB)
----.editorconfig(261B)
----.gitattributes(128B)

网友评论