@jayfong/x-utils 1.0.0-202407020937 → 1.0.0-202407020954
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_cjs/pinyin.js +5 -0
- package/ocr.d.ts +7 -0
- package/package.json +1 -1
- package/pinyin.d.ts +5 -0
- package/pinyin.js +5 -0
- package/upload.d.ts +6 -0
package/_cjs/pinyin.js
CHANGED
|
@@ -23,6 +23,11 @@ __export(pinyin_exports, {
|
|
|
23
23
|
module.exports = __toCommonJS(pinyin_exports);
|
|
24
24
|
var import_pinyin_pro = require("pinyin-pro");
|
|
25
25
|
class XPinyin {
|
|
26
|
+
/**
|
|
27
|
+
* - `我们` => `['wo', 'men']`
|
|
28
|
+
*
|
|
29
|
+
* - `2` => `['2']`
|
|
30
|
+
*/
|
|
26
31
|
static getTonelessPinyin(text) {
|
|
27
32
|
return (0, import_pinyin_pro.pinyin)(text, {
|
|
28
33
|
type: "array",
|
package/ocr.d.ts
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
+
/**
|
|
3
|
+
* 环境变量:
|
|
4
|
+
*
|
|
5
|
+
* - `X_OCR_RECOGNIZE_SERVER_URL`: 文字识别服务地址
|
|
6
|
+
* - `X_OCR_RECOGNIZE_CAPTCHA_SERVER_URL`: 验证码识别服务地址
|
|
7
|
+
* - `X_OCR_RECOGNIZE_CAPTCHA_SERVER_TOKEN`: 验证码识别服务令牌
|
|
8
|
+
*/
|
|
2
9
|
export declare class XOcr {
|
|
3
10
|
static recognize(url: string, { serverUrl, }?: {
|
|
4
11
|
serverUrl?: string;
|
package/package.json
CHANGED
package/pinyin.d.ts
CHANGED
package/pinyin.js
CHANGED