gs-data 0.1.10 → 0.1.11
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/README.cn.md +5 -5
- package/README.md +5 -5
- package/package.json +4 -4
package/README.cn.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
#
|
|
1
|
+
# gs-data
|
|
2
2
|
### 中文 | [English](README.md)
|
|
3
3
|
> 在浏览器端读写网络或文件数据的基础性类库<br/>
|
|
4
|
-
> 如果用于本地文件读写,基于本类库的[
|
|
5
|
-
> 如果用于网络读取与下载,基于本类库的[
|
|
4
|
+
> 如果用于本地文件读写,基于本类库的[gs-web-fs](https://www.npmjs.com/package/gs-web-fs)更方便使用<br/>
|
|
5
|
+
> 如果用于网络读取与下载,基于本类库的[gs-fetch](https://www.npmjs.com/package/gs-fetch)更方便使用
|
|
6
6
|
>> 主要包含通过文件内容自动类型分析与扩展名分析
|
|
7
7
|
|
|
8
8
|
> 自动根据内容读取浏览器端常用数据类型
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
|
|
14
14
|
## 安装
|
|
15
15
|
```shell
|
|
16
|
-
npx yarn add
|
|
16
|
+
npx yarn add gs-data
|
|
17
17
|
```
|
|
18
18
|
## 使用
|
|
19
19
|
### 自动判断数据类型 与 数据读取
|
|
20
20
|
```ts
|
|
21
|
-
import {parseMime,getExtensionMime,readBlob} from 'https://cdn.jsdmirror.cn/npm/
|
|
21
|
+
import {parseMime,getExtensionMime,readBlob} from 'https://cdn.jsdmirror.cn/npm/gs-data/lib/index.web.js'
|
|
22
22
|
|
|
23
23
|
const blob = await fetch('https://emoji.bj.bcebos.com/yige-aigc/index_aigc/final/toolspics/15.png').then(r=>r.blob());
|
|
24
24
|
|
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
#
|
|
1
|
+
# gs-data
|
|
2
2
|
### English | [中文](README.cn.md)
|
|
3
3
|
> A foundational library for reading and writing network or file data on the browser side<br/>
|
|
4
|
-
> For local file read/write operations, [
|
|
5
|
-
> For network data reading and downloading, [
|
|
4
|
+
> For local file read/write operations, [gs-web-fs](https://www.npmjs.com/package/gs-web-fs), built on top of this library, offers enhanced ease of use<br/>
|
|
5
|
+
> For network data reading and downloading, [gs-fetch](https://www.npmjs.com/package/gs-fetch), also based on this library, provides a more convenient solution
|
|
6
6
|
>> The main features include automatic type detection by file content and file extension analysis.
|
|
7
7
|
|
|
8
8
|
> Automatically reads common browser-side data types based on content
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
|
|
14
14
|
## Installation
|
|
15
15
|
```shell
|
|
16
|
-
npx yarn add
|
|
16
|
+
npx yarn add gs-data
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
## Usage
|
|
20
20
|
### Auto-detecting Data Types and Reading Data
|
|
21
21
|
```ts
|
|
22
|
-
import {parseMime,getExtensionMime,readBlob} from 'https://cdn.jsdmirror.cn/npm/
|
|
22
|
+
import {parseMime,getExtensionMime,readBlob} from 'https://cdn.jsdmirror.cn/npm/gs-data/lib/index.web.js'
|
|
23
23
|
|
|
24
24
|
const blob = await fetch('https://emoji.bj.bcebos.com/yige-aigc/index_aigc/final/toolspics/15.png').then(r => r.blob());
|
|
25
25
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gs-data",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.11",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "lib/index.cjs",
|
|
6
6
|
"module": "lib/index.js",
|
|
@@ -23,13 +23,13 @@
|
|
|
23
23
|
"文件类型分析",
|
|
24
24
|
"文件读写"
|
|
25
25
|
],
|
|
26
|
-
"homepage": "https://gitee.com/grain-sand/
|
|
26
|
+
"homepage": "https://gitee.com/grain-sand/gs-data",
|
|
27
27
|
"preferred-homepages": [
|
|
28
|
-
"https://github.com/grain-sand/
|
|
28
|
+
"https://github.com/grain-sand/gs-data"
|
|
29
29
|
],
|
|
30
30
|
"repository": {
|
|
31
31
|
"type": "git",
|
|
32
|
-
"url": "git+https://github.com/grain-sand/
|
|
32
|
+
"url": "git+https://github.com/grain-sand/gs-data"
|
|
33
33
|
},
|
|
34
34
|
"publishConfig": {
|
|
35
35
|
"access": "public",
|