Gathering detailed insights and metrics for textjstools
Gathering detailed insights and metrics for textjstools
npm install textjstools
Typescript
Module System
Node Version
NPM Version
Verify real, reachable, and deliverable emails with instant MX records, SMTP checks, and disposable email detection.
Total Downloads
1,891
Last Day
1
Last Week
2
Last Month
4
Last Year
185
Minified
Minified + Gzipped
Latest Version
1.0.11
Package Id
textjstools@1.0.11
Unpacked Size
22.26 kB
Size
6.44 kB
File Count
15
NPM Version
6.14.5
Node Version
14.4.0
Cumulative downloads
Total Downloads
Last Day
0%
1
Compared to previous day
Last Week
0%
2
Compared to previous week
Last Month
-88.2%
4
Compared to previous month
Last Year
-25.7%
185
Compared to previous year
2
2
CJerryG
textjstools 是一个javascript 函数库扩展。您可以尽情的使用它,您也可以按需加载。
该函数库为测试库(功能还不够完善。如有建议,可以lssues;如因为错误所造成的后果,请您见谅!)
install dependencies
1$ npm install --save textjstools
import textjstools
1import textjstools from 'textjstools'
demand import
1import {toStr} form 'textjstools'
dataType.js
名称 | 描述 | 参数 | 返回值 |
---|---|---|---|
isUndefined | 是否为Undefined | any | true |false |
isNumber | 是否为Number | any | true |false |
isString | 是否为String | any | true |false |
isBoolean | 是否为Boolean | any | true |false |
isNull | 是否为Null | any | true |false |
isFunction | 是否为Function | any | true |false |
isObject | 是否为Object | any | true |false |
isNaN | 是否为NaN | any | true |false |
isArrayObject | 是否为ArrayObject | any | true |false |
isNumberObject | 是否为NumberObject | any | true |false |
isStringObject | 是否为StringObject | any | true |false |
isBooleanObject | 是否为BooleanObject | any | true |false |
isSymbol | 是否为Symbol | any | true |false |
isBigint | 是否为Bigint | any | true |false |
numberfun.js
名称 | 描述 | 参数 | 返回值 |
---|---|---|---|
evenNums | 是否为偶数 | Number | true |false |
oddNum | 是否为奇数 | Number | true |false |
primeNum | 是否为质数(大于1且只能被1或自身整除) | Number | true |false |
primeNumArr | 返回2 至 该数的质数集合 | Number | [...] |
totalNum | 是否为合数(大于1且可以被其他数整除,除了0) | Number | true |false |
totalNumArr | 返回2至该数的合数集合 | Number | [...] |
toNum | 强制转换成Number | any | Number|NaN |
toPrice | 保留n位小数(四舍五入) | Number | String |
toPrice1 | 保留n位小数(不四舍五入) | Number | String |
toPrice2 | 不处理小数部分 | Number | String |
stringfun.js
名称 | 描述 | 参数 | 返回值 |
---|---|---|---|
toStr | 强制转换成String | any | String |
toFillStr | 填充元素 | String Number:从哪填充 String:填充的元素 | String |
array.js
名称 | 描述 | 参数 | 返回值 |
---|---|---|---|
unique | 数组去掉重复的元素 | array | array |
1import textjstools from 'textjstools'; 2const arr = textjstools.primeNum(12);//[2,3,5,7,11]
1import {totalNumArr} from 'textjstools'; 2const arr = totalNumArr(12);//[4,6,8,9,10,12]
vx:GJteams(合作注明来意)
github:https://github.com/getJerryG
更多功能敬请期待,欢迎共同创造!
No vulnerabilities found.
No security vulnerabilities found.