Skip to content

Commit

Permalink
Ver 1.10116.0
Browse files Browse the repository at this point in the history
  • Loading branch information
E0SelmY4V committed Jan 16, 2023
1 parent 3647b53 commit 9976d67
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 26 deletions.
2 changes: 1 addition & 1 deletion global.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* 幻想私社异步过程类
* @version 1.01220.20
* @version 1.10116.0
* @license GPL-3.0-or-later
* @link https://github.com/E0SelmY4V/scpo-proce
*/
Expand Down
2 changes: 1 addition & 1 deletion main.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ declare namespace scpoProce {
}
/**
* 幻想私社异步过程类
* @version 1.01220.20
* @version 1.10116.0
* @license GPL-3.0-or-later
* @link https://github.com/E0SelmY4V/scpo-proce
*/
Expand Down
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* 幻想私社异步过程类
* @version 1.01220.20
* @version 1.10116.0
* @license GPL-3.0-or-later
* @link https://github.com/E0SelmY4V/scpo-proce
*/
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "scpo-proce",
"version": "1.01220.20",
"version": "1.10116.0",
"description": "Make your async programming easier",
"main": "main.js",
"scripts": {
Expand Down
28 changes: 15 additions & 13 deletions readme-zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,35 +26,37 @@ scpoProce 全称 Scpos Process,即为幻想私社用以解决困扰社员二
git clone https://github.com/E0SelmY4V/scpo-proce.git
```

## 使用
## 引入

- ### CommonJS

例如 Node.js 等的 CommonJS 通过这样引入
- ### Common JS

```javascript
const { scpoProce } = require('scpo-proce');
// or
var scpoProce = require('scpo-proce')['default'];
const scpoProce = require('scpo-proce');
```

- ### ES6
- ### Typescript

```ts
import scpoProce = require('scpo-proce');
```

如果使用的是 ES 模块,可以像这样
- ### ES Module

```javascript
import scpoProce from 'scpo-proce';
```

- ### 浏览器

如果是用在网页开发
- ### HTML

```html
<script src="scpo-proce/main.js"></script>
```

就可以通过`window.scpoProce`或者`scpoProce`来使用了。
```js
/// <reference path="scpo-proce/global.d.ts" />

console.log(scpoProce);
```

## 使用提示

Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ The oldest browser it support is IE5.

## Import

- ### CommonJS
- ### Common JS

```javascript
const scpoProce = require('scpo-proce');
Expand Down
8 changes: 0 additions & 8 deletions webpack.config.js

This file was deleted.

0 comments on commit 9976d67

Please sign in to comment.