@mrtujiawei/utils
Advanced tools
Comparing version 1.4.6 to 1.4.7
{ | ||
"name": "@mrtujiawei/utils", | ||
"version": "1.4.6", | ||
"version": "1.4.7", | ||
"description": "把自己写的工具函数打包发布到npm上", | ||
@@ -5,0 +5,0 @@ "types": "types/index.d.ts", |
@@ -12,3 +12,8 @@ # @mrtujiawei/utils # | ||
- [utils](#utils) | ||
- [Installing](#installing) | ||
- [Usage](#usage) | ||
- [note: Brower usage](#note-brower-usage) | ||
- [note: CommonJS usage](#note-commonjs-usage) | ||
- [note: ESModule usage](#note-esmodule-usage) | ||
- [Example](#example) | ||
- [Stack](#stack) | ||
@@ -35,6 +40,57 @@ - [Queue](#queue) | ||
## utils ## | ||
## Installing ## | ||
工具函数 | ||
Using npm: | ||
```bash | ||
$ npm install @mrtujiawei/utils | ||
``` | ||
Using yarn: | ||
```bash | ||
$ yarn add @mrtujiawei/utils | ||
``` | ||
Using unpkg CDN: | ||
```html | ||
<script src="https://unpkg.com/@mrtujiawei/utils/dist/utils.js"></script> | ||
``` | ||
## Usage ## | ||
### note: Brower usage ### | ||
```javascript | ||
const { Stack } = utils.Stack; | ||
``` | ||
### note: CommonJS usage ### | ||
```javascript | ||
const { Stack } = require('@mrtujiawei/utils'); | ||
``` | ||
or | ||
```javascript | ||
const utils = require('@mrtujiawei/utils'); | ||
const Stack = utils.Stack; | ||
``` | ||
### note: ESModule usage ### | ||
```javascript | ||
import { Stack } from '@mrtujiawei/utils'; | ||
``` | ||
or | ||
```javascript | ||
import utils from '@mrtujiawei/utils'; | ||
const Stack = utils.Stack; | ||
``` | ||
## Example ## | ||
使用示例 | ||
### Stack ### | ||
@@ -41,0 +97,0 @@ |
219646
140